mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-11 12:30:25 +08:00
Fix lint errors
This commit is contained in:
@@ -21,7 +21,13 @@ import ListItemIcon from "@mui/material/ListItemIcon"
|
||||
import ListItemText from "@mui/material/ListItemText"
|
||||
import Modal from "@mui/material/Modal"
|
||||
import Toolbar from "@mui/material/Toolbar"
|
||||
import { CSSObject, SxProps, Theme, styled, useTheme } from "@mui/material/styles"
|
||||
import {
|
||||
CSSObject,
|
||||
SxProps,
|
||||
Theme,
|
||||
styled,
|
||||
useTheme,
|
||||
} from "@mui/material/styles"
|
||||
import React, { FC } from "react"
|
||||
import { Link } from "react-router-dom"
|
||||
import { useRecoilState, useRecoilValue } from "recoil"
|
||||
@@ -428,7 +434,7 @@ export const AppDrawer: FC<{
|
||||
</ListItem>
|
||||
</List>
|
||||
</Drawer>
|
||||
<Box component="main" sx={ mainSx }>
|
||||
<Box component="main" sx={mainSx}>
|
||||
<DrawerHeader />
|
||||
{children || null}
|
||||
</Box>
|
||||
|
||||
@@ -52,8 +52,8 @@ const useQueriedStudies = (
|
||||
}, [studies, query])
|
||||
}
|
||||
|
||||
const getStudyListLink = (ids: number[], URL_PREFIX: string): string => {
|
||||
const base = URL_PREFIX + "/compare-studies"
|
||||
const getStudyListLink = (ids: number[], url_prefix: string): string => {
|
||||
const base = url_prefix + "/compare-studies"
|
||||
if (ids.length > 0) {
|
||||
return base + "?ids=" + ids.map((n) => n.toString()).join(",")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user