Skip to content

Commit c784b1f

Browse files
committed
update packages
1 parent c5c2572 commit c784b1f

File tree

7 files changed

+5970
-11051
lines changed

7 files changed

+5970
-11051
lines changed

.storybook/main.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ import type { StorybookConfig } from "@storybook/nextjs";
33
const config: StorybookConfig = {
44
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
55
addons: ["@storybook/addon-essentials"],
6-
framework: {
7-
name: "@storybook/nextjs",
8-
options: {},
9-
},
10-
6+
framework: "@storybook/nextjs",
117
webpack: (config) => {
128
if (config.resolve) {
139
// @ts-ignore
@@ -17,4 +13,4 @@ const config: StorybookConfig = {
1713
},
1814
};
1915

20-
module.exports = config;
16+
export default config

.storybook/withSetup.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import i18n from "i18next";
1010
import en from "../public/locales/en/common.json";
1111
import fi from "../public/locales/fi/common.json";
1212
import "@mantine/core/styles.css";
13+
import { CookiesProvider } from "react-cookie";
1314

1415
i18n.use(initReactI18next).init({
1516
fallbackLng: "en",
@@ -80,12 +81,14 @@ const InnerApp = ({ children }: PropsWithChildren) => {
8081
export const withSetup: Decorator = (Story) => {
8182
return (
8283
<I18nextProvider i18n={i18n}>
83-
<InnerApp>
84-
<ModalsProvider>
85-
<Notifications />
86-
<Story />
87-
</ModalsProvider>
88-
</InnerApp>
84+
<CookiesProvider>
85+
<InnerApp>
86+
<ModalsProvider>
87+
<Notifications />
88+
<Story />
89+
</ModalsProvider>
90+
</InnerApp>
91+
</CookiesProvider>
8992
</I18nextProvider>
9093
);
9194
};

0 commit comments

Comments
 (0)