mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
Add YouTube as social link
This commit is contained in:
@@ -249,6 +249,7 @@ GitProfile.propTypes = {
|
||||
mastodon: PropTypes.string,
|
||||
facebook: PropTypes.string,
|
||||
instagram: PropTypes.string,
|
||||
youtube: PropTypes.string,
|
||||
dribbble: PropTypes.string,
|
||||
behance: PropTypes.string,
|
||||
medium: PropTypes.string,
|
||||
|
||||
@@ -19,6 +19,7 @@ import {
|
||||
FaStackOverflow,
|
||||
FaTelegram,
|
||||
FaLinkedin,
|
||||
FaYoutube,
|
||||
} from 'react-icons/fa';
|
||||
import PropTypes from 'prop-types';
|
||||
import { skeleton } from '../../helpers/utils';
|
||||
@@ -173,6 +174,14 @@ const Details = ({ profile, loading, social, github }) => {
|
||||
link={`https://www.instagram.com/${social.instagram}`}
|
||||
/>
|
||||
)}
|
||||
{social?.youtube && (
|
||||
<ListItem
|
||||
icon={<FaYoutube />}
|
||||
title="YouTube:"
|
||||
value={`@${social.youtube}`}
|
||||
link={`https://www.youtube.com/@${social.youtube}`}
|
||||
/>
|
||||
)}
|
||||
{social?.medium && (
|
||||
<ListItem
|
||||
icon={<AiFillMediumSquare />}
|
||||
|
||||
@@ -150,6 +150,7 @@ export const sanitizeConfig = (config) => {
|
||||
mastodon: config?.social?.mastodon,
|
||||
facebook: config?.social?.facebook,
|
||||
instagram: config?.social?.instagram,
|
||||
youtube: config?.social?.youtube,
|
||||
dribbble: config?.social?.dribbble,
|
||||
behance: config?.social?.behance,
|
||||
medium: config?.social?.medium,
|
||||
|
||||
Reference in New Issue
Block a user