Skip to content

Commit 8ab1cce

Browse files
committed
Header does not need it's own directory
1 parent 8604335 commit 8ab1cce

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

src/Header/Header.tsx renamed to src/Header.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import React, { memo, forwardRef, useId, type ReactNode, type CSSProperties } from "react";
2-
import { fr } from "../fr";
3-
import { createComponentI18nApi } from "../i18n";
2+
import { fr } from "./fr";
3+
import { createComponentI18nApi } from "./i18n";
44
import { symToStr } from "tsafe/symToStr";
5-
import { cx } from "../tools/cx";
6-
import { getLink } from "../link";
7-
import type { RegisteredLinkProps } from "../link";
5+
import { cx } from "./tools/cx";
6+
import { getLink } from "./link";
7+
import type { RegisteredLinkProps } from "./link";
88
import { assert } from "tsafe/assert";
99
import type { Equals } from "tsafe";
10-
import type { FrIconClassName, RiIconClassName } from "../fr/generatedFromCss/classNames";
11-
import type { MainNavigationProps } from "../MainNavigation";
12-
import { MainNavigation } from "../MainNavigation";
13-
import { Display } from "../Display/Display";
14-
import { setBrandTopAndHomeLinkProps } from "../zz_internal/brandTopAndHomeLinkProps";
10+
import type { FrIconClassName, RiIconClassName } from "./fr/generatedFromCss/classNames";
11+
import type { MainNavigationProps } from "./MainNavigation";
12+
import { MainNavigation } from "./MainNavigation";
13+
import { Display } from "./Display/Display";
14+
import { setBrandTopAndHomeLinkProps } from "./zz_internal/brandTopAndHomeLinkProps";
1515
import { typeGuard } from "tsafe/typeGuard";
16-
import { SearchButton } from "../SearchBar/SearchButton";
17-
import { useTranslation as useSearchBarTranslation } from "../SearchBar/SearchBar";
16+
import { SearchButton } from "./SearchBar/SearchButton";
17+
import { useTranslation as useSearchBarTranslation } from "./SearchBar/SearchBar";
1818

1919
export type HeaderProps = {
2020
className?: string;

src/Header/index.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

stories/Header.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { meta, getStory } = getStoryFactory({
1111
"wrappedComponent": { Header },
1212
"description": `
1313
- [See DSFR documentation](https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/en-tete)
14-
- [See source code](https://github.com/codegouvfr/react-dsfr/blob/main/src/Header/Header.tsx))
14+
- [See source code](https://github.com/codegouvfr/react-dsfr/blob/main/src/Header.tsx))
1515
1616
See also [\\<MainNavigation \\/\\>](https://components.react-dsfr.fr/?path=/docs/components-mainnavigation)
1717

0 commit comments

Comments
 (0)