Skip to content

Commit affc030

Browse files
committed
Fix storybook
1 parent c379357 commit affc030

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.storybook/DocsContainer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import { useDarkMode } from "storybook-dark-mode";
55
import { darkTheme, lightTheme } from "./customTheme";
66
import "../dist/dsfr/dsfr.css";
77
import "../dist/dsfr/utility/icons/icons.min.css";
8-
import { startReactDsfr, useIsDark, useColors } from "../dist";
8+
import { useIsDark } from "../dist/useIsDark";
9+
import { startReactDsfr } from "../dist/spa";
10+
import { useColors } from "../dist/useColors";
911

1012
startReactDsfr({
1113
"defaultColorScheme": "system",

stories/Card.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { assert } from "tsafe/assert";
77
import type { Equals } from "tsafe";
88

99
import "../dsfr/utility/icons/icons-system/icons-system.css";
10-
import { fr } from "../dist/lib";
10+
import { fr } from "../dist";
1111

1212
const { meta, getStory } = getStoryFactory({
1313
sectionName,

stories/getStory.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import type { Meta, Story } from "@storybook/react";
33
import type { ArgType } from "@storybook/addons";
44
import { symToStr } from "tsafe/symToStr";
55
import { id } from "tsafe/id";
6-
import { useIsDark, DsfrLangProvider } from "../dist/lib";
6+
import { useIsDark } from "../dist/useIsDark";
7+
import { DsfrLangProvider } from "../dist/i18n";
78

89
export function getStoryFactory<Props extends Record<string, any>>(params: {
910
sectionName: string;

0 commit comments

Comments
 (0)