Skip to content

Commit

Permalink
fix: accordion link was without href
Browse files Browse the repository at this point in the history
- also use target as `_blank`
  • Loading branch information
lfjnascimento committed Jul 19, 2024
1 parent a89f14f commit 72460a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions dashboard/src/components/LinkGroup/LinkGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const LinksGroup = ({ links }: ILinkGroup): JSX.Element => {
icon={link.icon}
linkText={link.linkText}
key={link.link}
link={link.link}
/>
),
);
Expand Down
7 changes: 6 additions & 1 deletion dashboard/src/components/LinkWithIcon/LinkWithIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ const LinkWithIcon = ({
return (
<div className="flex flex-col gap-2">
<span className="font-bold">{title}</span>
<a className="flex flex-row gap-1 items-center" href={link}>
<a
className="flex flex-row gap-1 items-center"
href={link}
target="_blank"
rel="noreferrer"
>
{linkText}
{icon}
</a>
Expand Down

0 comments on commit 72460a3

Please sign in to comment.