chore: fix types
All checks were successful
Chromatic / chromatic (push) Successful in 2m4s
CI / ci (push) Successful in 3m39s
CI / commitlint (push) Successful in 18s

This commit is contained in:
Théo LUDWIG 2024-07-27 11:20:23 +02:00
parent 90abfb6de8
commit 624d235a0e
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import "@repo/config-tailwind/styles.css" import "@repo/config-tailwind/styles.css"
import { defaultTranslationValues } from "@repo/i18n/config" import { defaultTranslationValues, Locale } from "@repo/i18n/config"
import i18nMessagesEnglish from "@repo/i18n/translations/en-US.json" import i18nMessagesEnglish from "@repo/i18n/translations/en-US.json"
import { ThemeProvider } from "@repo/ui/Header/SwitchTheme" import { ThemeProvider } from "@repo/ui/Header/SwitchTheme"
import type { Preview } from "@storybook/react" import type { Preview } from "@storybook/react"
@ -32,11 +32,13 @@ const preview: Preview = {
}, },
decorators: [ decorators: [
(Story) => { (Story) => {
const locale = "en-US" satisfies Locale
return ( return (
<ThemeProvider> <ThemeProvider>
<NextIntlClientProvider <NextIntlClientProvider
messages={i18nMessagesEnglish} messages={i18nMessagesEnglish}
locale="en" locale={locale}
defaultTranslationValues={defaultTranslationValues} defaultTranslationValues={defaultTranslationValues}
> >
<Story /> <Story />

View File

@ -13,6 +13,7 @@
"isolatedModules": true, "isolatedModules": true,
"esModuleInterop": true, "esModuleInterop": true,
"skipLibCheck": true "skipLibCheck": true,
"jsx": "preserve"
} }
} }