Merge pull request #189 from whyang0808/Add-loading-indicator-to-download-resume-btn

Add loading indicator for Download Resume button
This commit is contained in:
Ariful Alam
2022-10-11 17:25:25 +06:00
committed by GitHub

View File

@@ -55,7 +55,12 @@ const AvatarCard = ({ profile, loading, avatarRing, resume }) => {
: profile.bio} : profile.bio}
</div> </div>
</div> </div>
{resume?.fileUrl && ( {resume?.fileUrl &&
(loading ? (
<div className="mt-6">
{skeleton({ width: 'w-40', height: 'h-10' })}
</div>
) : (
<a <a
href={resume.fileUrl} href={resume.fileUrl}
target="_blank" target="_blank"
@@ -65,7 +70,7 @@ const AvatarCard = ({ profile, loading, avatarRing, resume }) => {
> >
Download Resume Download Resume
</a> </a>
)} ))}
</div> </div>
</div> </div>
); );