style: Update Link component to improve code readability
This commit is contained in:
parent
2cb7827938
commit
0c8b891289
@ -18,7 +18,9 @@ export function Link(props: LinkProps) {
|
||||
|
||||
const downloadExtensions = [".pdf", ".zip"];
|
||||
|
||||
const isDownload = downloadExtensions.some(props.href.endsWith);
|
||||
const isDownload = downloadExtensions.some((extension) =>
|
||||
props.href.endsWith(extension),
|
||||
);
|
||||
|
||||
return (
|
||||
<a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user