Skip to content

Commit 66aa32b

Browse files
authored
Merge pull request #691 from arifszn/rename-twitter
Replace Twitter with X in social links and configuration
2 parents ed15456 + c294bfe commit 66aa32b

File tree

8 files changed

+19
-19
lines changed

8 files changed

+19
-19
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const CONFIG = {
210210
},
211211
social: {
212212
linkedin: 'ariful-alam',
213-
twitter: 'arif_szn',
213+
x: 'arif_szn',
214214
mastodon: 'arifszn@mastodon.social',
215215
researchGate: '',
216216
facebook: '',
@@ -508,15 +508,15 @@ Your avatar and bio will be fetched from GitHub automatically.
508508

509509
### Social Links
510510

511-
You can link your social media services you're using, including LinkedIn, Twitter, Mastodon, ResearchGate, Facebook, Instagram, Reddit, Threads, YouTube, Udemy, Dribbble, Behance, Medium, dev, Stack Overflow, Skype, Telegram, personal website, phone and email.
511+
You can link your social media services you're using, including LinkedIn, X, Mastodon, ResearchGate, Facebook, Instagram, Reddit, Threads, YouTube, Udemy, Dribbble, Behance, Medium, dev, Stack Overflow, Skype, Telegram, personal website, phone and email.
512512

513513
```ts
514514
// gitprofile.config.ts
515515
const CONFIG = {
516516
// ...
517517
social: {
518518
linkedin: 'ariful-alam',
519-
twitter: 'arif_szn',
519+
x: 'arif_szn',
520520
mastodon: 'arifszn@mastodon.social',
521521
researchGate: '',
522522
facebook: '',

gitprofile.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const CONFIG = {
5858
},
5959
social: {
6060
linkedin: 'ariful-alam',
61-
twitter: 'arif_szn',
61+
x: 'arif_szn',
6262
mastodon: 'arifszn@mastodon.social',
6363
researchGate: '',
6464
facebook: '',

global.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ interface Social {
113113
linkedin?: string;
114114

115115
/**
116-
* Twitter
116+
* X (formerly Twitter)
117117
*/
118-
twitter?: string;
118+
x?: string;
119119

120120
/**
121121
* Mastodon

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"prettier": "^3.3.2",
4646
"react-helmet-async": "^2.0.5",
4747
"react-hotjar": "^6.3.1",
48-
"react-icons": "^5.2.1",
48+
"react-icons": "^5.4.0",
4949
"tailwindcss": "^3.4.3",
5050
"typescript": "^5.6.2",
5151
"vail": "^1.0.3",

src/components/details-card/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
import { FaSquareThreads } from 'react-icons/fa6';
2323
import { MdLocationOn } from 'react-icons/md';
2424
import { RiMailFill, RiPhoneFill } from 'react-icons/ri';
25-
import { SiResearchgate, SiTwitter, SiUdemy } from 'react-icons/si';
25+
import { SiResearchgate, SiX, SiUdemy } from 'react-icons/si';
2626
import { Profile } from '../../interfaces/profile';
2727
import {
2828
SanitizedGithub,
@@ -210,12 +210,12 @@ const DetailsCard = ({ profile, loading, social, github }: Props) => {
210210
link={`https://www.researchgate.net/profile/${social.researchGate}`}
211211
/>
212212
)}
213-
{social?.twitter && (
213+
{social?.x && (
214214
<ListItem
215-
icon={<SiTwitter />}
216-
title="Twitter:"
217-
value={social.twitter}
218-
link={`https://twitter.com/${social.twitter}`}
215+
icon={<SiX />}
216+
title="X:"
217+
value={social.x}
218+
link={`https://x.com/${social.x}`}
219219
/>
220220
)}
221221
{social?.mastodon && (

src/interfaces/sanitized-config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface SanitizedSEO {
4444

4545
export interface SanitizedSocial {
4646
linkedin?: string;
47-
twitter?: string;
47+
x?: string;
4848
mastodon?: string;
4949
researchGate?: string;
5050
facebook?: string;

src/utils/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const getSanitizedConfig = (
6262
},
6363
social: {
6464
linkedin: config?.social?.linkedin,
65-
twitter: config?.social?.twitter,
65+
x: config?.social?.x,
6666
mastodon: config?.social?.mastodon,
6767
facebook: config?.social?.facebook,
6868
instagram: config?.social?.instagram,

0 commit comments

Comments
 (0)