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

View File

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