Fix lint errors

This commit is contained in:
c-bata
2024-08-08 11:07:35 +09:00
parent 0e802786a4
commit cdca440ae3
2 changed files with 10 additions and 4 deletions
+8 -2
View File
@@ -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(",")
}