37 lines
764 B
TypeScript
37 lines
764 B
TypeScript
import "@mantine/core/styles.css";
|
|
import "@mantine/dates/styles.css";
|
|
import "dayjs/locale/ru";
|
|
import "../src/app/styles.css";
|
|
import "../src/shared/i18n";
|
|
import { MantineProvider } from "@mantine/core";
|
|
import type { Preview } from "@storybook/react-vite";
|
|
import { theme } from "../src/app/theme";
|
|
|
|
const colorSchemeManager = {
|
|
get: () => "light" as const,
|
|
set: () => {},
|
|
clear: () => {},
|
|
subscribe: () => {},
|
|
unsubscribe: () => {},
|
|
};
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
layout: "padded",
|
|
controls: { expanded: true },
|
|
},
|
|
decorators: [
|
|
(Story) => (
|
|
<MantineProvider
|
|
theme={theme}
|
|
forceColorScheme="light"
|
|
colorSchemeManager={colorSchemeManager}
|
|
>
|
|
<Story />
|
|
</MantineProvider>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default preview;
|