Add discord

This commit is contained in:
Adri 2025-07-06 09:24:30 +02:00 committed by GitHub
parent 76f29bc382
commit 9ef19a2ab5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 1 deletions

5
global.d.ts vendored
View File

@ -206,6 +206,11 @@ interface Social {
* Email
*/
email?: string;
/**
* Discord username
*/
discord?: string;
}
interface Resume {

View File

@ -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 && (
<ListItem
icon={<RiDiscordFill />}
title="Discord:"
value={social.discord}
link={`https://discord.com/app`}
/>
)}
</Fragment>
)}
</div>

View File

@ -63,6 +63,7 @@ export interface SanitizedSocial {
telegram?: string;
phone?: string;
email?: string;
discord?: string;
}
export interface SanitizedResume {

View File

@ -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 || '',