mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-10 12:23:22 +08:00
Add TrialTableDark
This commit is contained in:
@@ -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],
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
import { createTheme } from "@mui/material";
|
||||
|
||||
export const darkTheme = createTheme({
|
||||
palette: {
|
||||
mode: "dark",
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user