chore: fix types
This commit is contained in:
parent
90abfb6de8
commit
624d235a0e
@ -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 />
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"skipLibCheck": true
|
"skipLibCheck": true,
|
||||||
|
"jsx": "preserve"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user