Add TrialTableDark

This commit is contained in:
porink0424
2024-03-22 13:55:53 +09:00
parent 9d60cb386a
commit a6d8a074d3
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,36 @@
import { ThemeProvider } from "@mui/material";
import { Meta, StoryObj } from "@storybook/react";
import { mockStudies } from "../MockStudies";
import { darkTheme } from "../styles/darkTheme";
import { TrialTable } from "./TrialTable";
const meta: Meta<typeof TrialTable> = {
component: TrialTable,
title: "TrialTableDark",
tags: ["autodocs"],
decorators: [
(Story) => (
<ThemeProvider theme={darkTheme}>
<Story />
</ThemeProvider>
),
],
parameters: {
backgrounds: { default: "dark" },
},
};
export default meta;
type Story = StoryObj<typeof TrialTable>;
export const MockStudy1: Story = {
args: {
study: mockStudies[0],
},
};
export const MockStudy2: Story = {
args: {
study: mockStudies[1],
},
};
+7
View File
@@ -0,0 +1,7 @@
import { createTheme } from "@mui/material";
export const darkTheme = createTheme({
palette: {
mode: "dark",
},
});