Skip to content

Commit 4f28dbf

Browse files
author
Julien Bouquillon
authored
fix: use getLink
Signed-off-by: Julien Bouquillon <julien.bouquillon@sg.social.gouv.fr>
1 parent 8f5eb63 commit 4f28dbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Card.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { Equals } from "tsafe";
66

77
import { FrIconClassName, RiIconClassName } from "./lib/generatedFromCss/classNames";
88
import { fr, RegisteredLinkProps } from "./lib";
9-
import { useLink } from "./lib/routing";
9+
import { getLink } from "./lib/routing";
1010
import { cx } from "./lib/tools/cx";
1111

1212
import "./dsfr/component/card/card.css";
@@ -94,7 +94,7 @@ export const Card = memo(
9494

9595
assert<Equals<keyof typeof rest, never>>();
9696

97-
const { Link } = useLink();
97+
const { Link } = getLink();
9898

9999
return (
100100
<div

0 commit comments

Comments
 (0)