Skip to content

Commit

Permalink
fix: pass download attr to the linkComp
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Oct 15, 2023
1 parent 909ba00 commit 173349c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/StyledLink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const StyledLink: FC<PropsWithChildren<StyledLinkProps>> = ({
href={href}
target={openNewTab ? '_blank' : '_self'}
rel="noopener noreferrer"
download={download}
>
{children ?? href}
{isExternalLink && icon ? <ArrowIcon className={clsx(styles.arrowIcon)} /> : null}
Expand Down

0 comments on commit 173349c

Please sign in to comment.