diff --git a/apps/storybook/.storybook/preview.tsx b/apps/storybook/.storybook/preview.tsx index 54777fa..df4e189 100644 --- a/apps/storybook/.storybook/preview.tsx +++ b/apps/storybook/.storybook/preview.tsx @@ -1,6 +1,7 @@ import "@repo/config-tailwind/styles.css" -import { defaultTranslationValues, Locale } from "@repo/i18n/config" +import { defaultTranslationValues } from "@repo/i18n/config" import i18nMessagesEnglish from "@repo/i18n/translations/en-US.json" +import type { Locale } from "@repo/utils/constants" import type { Preview } from "@storybook/react" import { NextIntlClientProvider } from "next-intl" import { ThemeProvider as NextThemeProvider } from "next-themes" diff --git a/apps/storybook/.storybook/test-runner.ts b/apps/storybook/.storybook/test-runner.ts index f667b46..d96b7e4 100644 --- a/apps/storybook/.storybook/test-runner.ts +++ b/apps/storybook/.storybook/test-runner.ts @@ -5,7 +5,6 @@ import { checkA11y, configureAxe, injectAxe } from "axe-playwright" /* * See https://storybook.js.org/docs/writing-tests/test-runner#test-hook-api - * to learn more about the test-runner hooks API. */ const config: TestRunnerConfig = { async preVisit(page) { diff --git a/apps/storybook/package.json b/apps/storybook/package.json index 260aced..ec368fc 100644 --- a/apps/storybook/package.json +++ b/apps/storybook/package.json @@ -16,6 +16,7 @@ "@repo/config-tailwind": "workspace:*", "@repo/i18n": "workspace:*", "@repo/ui": "workspace:*", + "@repo/utils": "workspace:*", "@repo/wikipedia-game-solver": "workspace:*", "next": "catalog:", "next-intl": "catalog:", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9e58be3..1206b95 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -432,6 +432,9 @@ importers: '@repo/ui': specifier: workspace:* version: link:../../packages/ui + '@repo/utils': + specifier: workspace:* + version: link:../../packages/utils '@repo/wikipedia-game-solver': specifier: workspace:* version: link:../../packages/wikipedia-game-solver