mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
Rename dev.to
This commit is contained in:
@@ -238,7 +238,7 @@ GitProfile.propTypes = {
|
||||
dribbble: PropTypes.string,
|
||||
behance: PropTypes.string,
|
||||
medium: PropTypes.string,
|
||||
devto: PropTypes.string,
|
||||
dev: PropTypes.string,
|
||||
website: PropTypes.string,
|
||||
phone: PropTypes.string,
|
||||
email: PropTypes.string,
|
||||
|
||||
@@ -30,7 +30,7 @@ const Blog = ({ loading, blog, googleAnalytics }) => {
|
||||
}).then((res) => {
|
||||
setArticles(res);
|
||||
});
|
||||
} else if (blog.source === 'dev.to') {
|
||||
} else if (blog.source === 'dev') {
|
||||
getDevPost({
|
||||
user: blog.username,
|
||||
}).then((res) => {
|
||||
|
||||
@@ -136,12 +136,12 @@ const Details = ({ profile, loading, social, github }) => {
|
||||
link={`https://medium.com/@${social.medium}`}
|
||||
/>
|
||||
)}
|
||||
{typeof social.devto !== 'undefined' && social.devto && (
|
||||
{typeof social.dev !== 'undefined' && social.dev && (
|
||||
<ListItem
|
||||
icon={<FaDev className="mr-2" />}
|
||||
title="Dev:"
|
||||
value={social.devto}
|
||||
link={`https://dev.to/${social.devto}`}
|
||||
value={social.dev}
|
||||
link={`https://dev.to/${social.dev}`}
|
||||
/>
|
||||
)}
|
||||
{typeof social.website !== 'undefined' && social.website && (
|
||||
|
||||
@@ -206,10 +206,10 @@ export const sanitizeConfig = (config) => {
|
||||
typeof config.social.medium !== 'undefined'
|
||||
? config.social.medium
|
||||
: '',
|
||||
devto:
|
||||
dev:
|
||||
typeof config.social !== 'undefined' &&
|
||||
typeof config.social.devto !== 'undefined'
|
||||
? config.social.devto
|
||||
typeof config.social.dev !== 'undefined'
|
||||
? config.social.dev
|
||||
: '',
|
||||
website:
|
||||
typeof config.social !== 'undefined' &&
|
||||
|
||||
Reference in New Issue
Block a user