Skip to content

Commit 2580749

Browse files
committed
EksternLenke: Fjern unødvendig fragment
1 parent cf617aa commit 2580749

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

Diff for: src/komponenter/navigation/EksternLenke.tsx

+4-19
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,11 @@ interface EksternLenkeProps {
1313

1414
const EksternLenke: React.FunctionComponent<PropsWithChildren<EksternLenkeProps>> = (props) => {
1515
return (
16-
<>
17-
<Link target="_blank" href={props.href}>
18-
{props.children}
19-
<TilEkstern className="ekstern-lenke-icon" />
20-
</Link>
21-
</>
16+
<Link target="_blank" href={props.href}>
17+
{props.children}
18+
<TilEkstern className="ekstern-lenke-icon" />
19+
</Link>
2220
);
2321
};
2422

25-
/*
26-
const EksternLenke: React.FunctionComponent<Props> = (props) => {
27-
return (
28-
<>
29-
<Link target="_blank" {...props}>
30-
{props.children}
31-
<TilEkstern focusable="false" className="ekstern-lenke-icon" />
32-
</Link>
33-
</>
34-
);
35-
};
36-
*/
37-
3823
export default EksternLenke;

0 commit comments

Comments
 (0)