style: Update Link component to improve code readability

This commit is contained in:
Gauthier Daniels 2025-04-19 15:23:47 +02:00
parent 2cb7827938
commit 0c8b891289

View File

@ -18,7 +18,9 @@ export function Link(props: LinkProps) {
const downloadExtensions = [".pdf", ".zip"]; const downloadExtensions = [".pdf", ".zip"];
const isDownload = downloadExtensions.some(props.href.endsWith); const isDownload = downloadExtensions.some((extension) =>
props.href.endsWith(extension),
);
return ( return (
<a <a