From 0a0cd6bae1e3d2cda15e98519fc22998b54e5c29 Mon Sep 17 00:00:00 2001 From: Joan Jeremiah J Date: Mon, 3 Oct 2022 14:29:01 +0530 Subject: [PATCH] eslint fix --- gitprofile.config.js | 4 ++-- src/components/avatar-card/index.jsx | 7 ++++--- src/helpers/utils.jsx | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/gitprofile.config.js b/gitprofile.config.js index 21b2426..312abba 100644 --- a/gitprofile.config.js +++ b/gitprofile.config.js @@ -10,8 +10,8 @@ const config = { projects: [], // These projects will not be displayed. example: ['my-project1', 'my-project2'] }, }, - resume:{ - fileName: 'resume.pdf' // Place the resume file in public folder with the same name as the 'fileName' property. + resume: { + fileName: 'resume.pdf', // Place the resume file in public folder with the same name as the 'fileName' property. }, social: { linkedin: 'ariful-alam', diff --git a/src/components/avatar-card/index.jsx b/src/components/avatar-card/index.jsx index 4f87322..8379062 100644 --- a/src/components/avatar-card/index.jsx +++ b/src/components/avatar-card/index.jsx @@ -55,16 +55,17 @@ const AvatarCard = ({ profile, loading, avatarRing, resume }) => { : profile.bio} - { resume?.fileName && + {resume?.fileName && ( Download Resume - } + )} ); @@ -74,7 +75,7 @@ AvatarCard.propTypes = { profile: PropTypes.object, loading: PropTypes.bool.isRequired, avatarRing: PropTypes.bool.isRequired, - resume: PropTypes.object + resume: PropTypes.object, }; export default AvatarCard; diff --git a/src/helpers/utils.jsx b/src/helpers/utils.jsx index ebca0f7..846f157 100644 --- a/src/helpers/utils.jsx +++ b/src/helpers/utils.jsx @@ -133,7 +133,7 @@ export const sanitizeConfig = (config) => { 'winter', 'procyon', ]; - + return { github: { username: config?.github?.username || '', @@ -144,8 +144,8 @@ export const sanitizeConfig = (config) => { projects: config?.github?.exclude?.projects || [], }, }, - resume:{ - fileName: config?.resume?.fileName || false + resume: { + fileName: config?.resume?.fileName || false, }, social: { linkedin: config?.social?.linkedin,