mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-25 04:17:13 +00:00
Rename variable of resume file URL
This commit is contained in:
@@ -206,7 +206,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
resume: {
|
resume: {
|
||||||
fileName: 'resume.pdf', // Place the resume file in public folder with the same name as the 'fileName' property.
|
fileUrl: '', // Empty fileUrl will hide the `Download Resume` button.
|
||||||
},
|
},
|
||||||
social: {
|
social: {
|
||||||
linkedin: '',
|
linkedin: '',
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
resume: {
|
resume: {
|
||||||
fileName: 'resume.pdf', // Place the resume file in public folder with the same name as the 'fileName' property.
|
fileUrl: 'resume.pdf', // Empty fileUrl will hide the `Download Resume` button.
|
||||||
},
|
},
|
||||||
social: {
|
social: {
|
||||||
linkedin: 'ariful-alam',
|
linkedin: 'ariful-alam',
|
||||||
|
|||||||
Binary file not shown.
@@ -55,9 +55,9 @@ const AvatarCard = ({ profile, loading, avatarRing, resume }) => {
|
|||||||
: profile.bio}
|
: profile.bio}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{resume?.fileName && (
|
{resume?.fileUrl && (
|
||||||
<a
|
<a
|
||||||
href={resume.fileName}
|
href={resume.fileUrl}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
className="btn btn-outline btn-primary text-xs mt-6"
|
className="btn btn-outline btn-primary text-xs mt-6"
|
||||||
download
|
download
|
||||||
@@ -75,7 +75,9 @@ AvatarCard.propTypes = {
|
|||||||
profile: PropTypes.object,
|
profile: PropTypes.object,
|
||||||
loading: PropTypes.bool.isRequired,
|
loading: PropTypes.bool.isRequired,
|
||||||
avatarRing: PropTypes.bool.isRequired,
|
avatarRing: PropTypes.bool.isRequired,
|
||||||
resume: PropTypes.object,
|
resume: PropTypes.shape({
|
||||||
|
fileUrl: PropTypes.string,
|
||||||
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
export default AvatarCard;
|
export default AvatarCard;
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ export const sanitizeConfig = (config) => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
resume: {
|
resume: {
|
||||||
fileName: config?.resume?.fileName || false,
|
fileUrl: config?.resume?.fileUrl || '',
|
||||||
},
|
},
|
||||||
social: {
|
social: {
|
||||||
linkedin: config?.social?.linkedin,
|
linkedin: config?.social?.linkedin,
|
||||||
|
|||||||
Reference in New Issue
Block a user