diff --git a/global.d.ts b/global.d.ts index 3097dd355..e8be0b785 100644 --- a/global.d.ts +++ b/global.d.ts @@ -206,6 +206,11 @@ interface Social { * Email */ email?: string; + + /** + * Discord username + */ + discord?: string; } interface Resume { diff --git a/src/components/details-card/index.tsx b/src/components/details-card/index.tsx index 0a51e0b68..ada716f25 100644 --- a/src/components/details-card/index.tsx +++ b/src/components/details-card/index.tsx @@ -21,7 +21,7 @@ import { } from 'react-icons/fa'; import { FaSquareThreads } from 'react-icons/fa6'; import { MdLocationOn } from 'react-icons/md'; -import { RiMailFill, RiPhoneFill } from 'react-icons/ri'; +import { RiDiscordFill, RiMailFill, RiPhoneFill } from 'react-icons/ri'; import { SiResearchgate, SiX, SiUdemy } from 'react-icons/si'; import { Profile } from '../../interfaces/profile'; import { @@ -368,6 +368,14 @@ const DetailsCard = ({ profile, loading, social, github }: Props) => { link={`mailto:${social.email}`} /> )} + {social?.discord && ( + } + title="Discord:" + value={social.discord} + link={`https://discord.com/app`} + /> + )} )} diff --git a/src/interfaces/sanitized-config.tsx b/src/interfaces/sanitized-config.tsx index 3494f11e9..6eb00782b 100644 --- a/src/interfaces/sanitized-config.tsx +++ b/src/interfaces/sanitized-config.tsx @@ -63,6 +63,7 @@ export interface SanitizedSocial { telegram?: string; phone?: string; email?: string; + discord?: string; } export interface SanitizedResume { diff --git a/src/utils/index.tsx b/src/utils/index.tsx index 644c24b82..1947e4064 100644 --- a/src/utils/index.tsx +++ b/src/utils/index.tsx @@ -81,6 +81,7 @@ export const getSanitizedConfig = ( skype: config?.social?.skype, telegram: config?.social?.telegram, researchGate: config?.social?.researchGate, + discord: config?.social?.discord, }, resume: { fileUrl: config?.resume?.fileUrl || '',