Add stock search and detail pages with charts, dividends and shared event rows. Use verified ticker links for portfolio names and logos, numeric dates and refreshed account cards. Update the generated API contract.
43 lines
949 B
TypeScript
43 lines
949 B
TypeScript
import "@mantine/core/styles.css";
|
|
import "@mantine/charts/styles.css";
|
|
import "@mantine/dates/styles.css";
|
|
import "dayjs/locale/ru";
|
|
import "../src/shared/i18n";
|
|
import { MantineProvider } from "@mantine/core";
|
|
import type { Preview } from "@storybook/react-vite";
|
|
import { cssVariablesResolver, theme } from "@/shared/theme";
|
|
|
|
const colorSchemeManager = {
|
|
get: () => "light" as const,
|
|
set: () => {},
|
|
clear: () => {},
|
|
subscribe: () => {},
|
|
unsubscribe: () => {},
|
|
};
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
layout: "padded",
|
|
options: {
|
|
storySort: {
|
|
order: ["Design System", ["Foundations", "Components"], "Product"],
|
|
},
|
|
},
|
|
controls: { expanded: true },
|
|
},
|
|
decorators: [
|
|
(Story) => (
|
|
<MantineProvider
|
|
cssVariablesResolver={cssVariablesResolver}
|
|
theme={theme}
|
|
forceColorScheme="light"
|
|
colorSchemeManager={colorSchemeManager}
|
|
>
|
|
<Story />
|
|
</MantineProvider>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default preview;
|