Skip to content

Commit 6eedf2c

Browse files
committed
changed path for type in story, rm useless cx()
1 parent e83fcb8 commit 6eedf2c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/SkipLinks.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ export const SkipLinks = memo(
2525

2626
return (
2727
<div className={cx(fr.cx("fr-skiplinks"), classes.root, className)} ref={ref} {...rest}>
28-
<nav
29-
className={cx(fr.cx("fr-container"))}
30-
role="navigation"
31-
aria-label={t("label")}
32-
>
28+
<nav className={fr.cx("fr-container")} role="navigation" aria-label={t("label")}>
3329
<ul className={cx(fr.cx("fr-skiplinks__list"), classes.list)}>
3430
{links &&
3531
links.map(link => (

stories/SkipLinks.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SkipLinks } from "../dist/SkipLinks";
2-
import type { SkipLinksProps } from "../dist/SkipLinks";
2+
import type { SkipLinksProps } from "../src/SkipLinks";
33
import { sectionName } from "./sectionName";
44
import { getStoryFactory } from "./getStory";
55

0 commit comments

Comments
 (0)