remove some duplicate code
This commit is contained in:
@@ -8,14 +8,13 @@ export default function ResumeDownloader({ paths, label }: { paths: string[], la
|
||||
download
|
||||
href={path}
|
||||
target="_blank"
|
||||
referrerPolicy="no-referrer"
|
||||
rel="noopener"
|
||||
referrerPolicy="no-referrer"
|
||||
className="mr-2 cursor-pointer hover:text-sky-300 active:text-white bg-slate-500 dark:bg-slate-800 py-1 px-1.5 rounded-lg"
|
||||
>
|
||||
{ `.${path.split('.').pop()}` }
|
||||
</a>
|
||||
))}
|
||||
<a download href="/resume/Mikayla Resume 1023.pdf" target="_blank" referrerPolicy="no-referrer" rel="noopener" className="mr-2 cursor-pointer hover:text-sky-300 active:text-white bg-slate-500 dark:bg-slate-800 py-1 px-1.5 rounded-lg">.pdf</a>
|
||||
<a download href="/resume/Mikayla Resume 1023.docx" target="_blank" referrerPolicy="no-referrer" rel="noopener" className="mr-2 cursor-pointer hover:text-sky-300 active:text-white bg-slate-500 dark:bg-slate-800 py-1 px-1.5 rounded-lg">.docx</a>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user