mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-09 11:28:14 +08:00
Move PageId definition to AppDrawer
This commit is contained in:
@@ -33,6 +33,13 @@ import { Switch } from "@mui/material"
|
||||
|
||||
const drawerWidth = 240
|
||||
|
||||
export type PageId =
|
||||
| "history"
|
||||
| "analytics"
|
||||
| "trialTable"
|
||||
| "trialList"
|
||||
| "note"
|
||||
|
||||
const openedMixin = (theme: Theme): CSSObject => ({
|
||||
width: drawerWidth,
|
||||
transition: theme.transitions.create("width", {
|
||||
|
||||
@@ -24,7 +24,7 @@ import {
|
||||
useStudySummaryValue,
|
||||
} from "../state"
|
||||
import { TrialTable } from "./TrialTable"
|
||||
import { AppDrawer } from "./AppDrawer"
|
||||
import { AppDrawer, PageId } from "./AppDrawer"
|
||||
import { GraphParallelCoordinate } from "./GraphParallelCoordinate"
|
||||
import { Contour } from "./GraphContour"
|
||||
import { GraphHyperparameterImportanceBeta } from "./GraphHyperparameterImportances"
|
||||
|
||||
Vendored
-2
@@ -16,8 +16,6 @@ type Distribution =
|
||||
| "IntDistribution"
|
||||
| "CategoricalDistribution"
|
||||
|
||||
type PageId = "history" | "analytics" | "trialTable" | "trialList" | "note"
|
||||
|
||||
type GraphVisibility = {
|
||||
history: boolean
|
||||
paretoFront: boolean
|
||||
|
||||
Reference in New Issue
Block a user