Skip to content

Commit b213cde

Browse files
authored
Merge pull request #1161 from c-bata/avoid-exporting-page-id
Refactor AppDrawer: avoid exporting PageId type
2 parents dee30c7 + 1696d4c commit b213cde

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

optuna_dashboard/ts/components/AppDrawer.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,6 @@ import { useConstants } from "../constantsProvider"
5353

5454
const drawerWidth = 240
5555

56-
export type PageId =
57-
| "top"
58-
| "analytics"
59-
| "trialTable"
60-
| "trialList"
61-
| "trialSelection"
62-
| "note"
63-
| "preferenceHistory"
64-
| "graph"
65-
6656
const openedMixin = (theme: Theme): CSSObject => ({
6757
width: drawerWidth,
6858
transition: theme.transitions.create("width", {

optuna_dashboard/ts/components/StudyDetail.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { Link, useParams } from "react-router-dom"
1515
import { useConstants } from "../constantsProvider"
1616
import { useLatestStudyDetail } from "../hooks/useLatestStudyDetail"
1717
import { useStudyIsPreferential, useStudyName } from "../state"
18-
import { AppDrawer, PageId } from "./AppDrawer"
18+
import { AppDrawer } from "./AppDrawer"
1919
import { Contour } from "./GraphContour"
2020
import { GraphEdf } from "./GraphEdf"
2121
import { GraphParallelCoordinate } from "./GraphParallelCoordinate"
@@ -31,6 +31,16 @@ import { TrialList } from "./TrialList"
3131
import { TrialSelection } from "./TrialSelection"
3232
import { TrialTable } from "./TrialTable"
3333

34+
type PageId =
35+
| "top"
36+
| "analytics"
37+
| "trialTable"
38+
| "trialList"
39+
| "trialSelection"
40+
| "note"
41+
| "preferenceHistory"
42+
| "graph"
43+
3444
export const useURLVars = (): number => {
3545
const { studyId } = useParams<{ studyId: string }>()
3646

0 commit comments

Comments
 (0)