mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-10 12:23:22 +08:00
Change text for switching to stable UI
This commit is contained in:
@@ -315,7 +315,10 @@ export const AppDrawer: FC<{
|
||||
<ListItemIcon sx={styleListItemIcon}>
|
||||
<ClearIcon />
|
||||
</ListItemIcon>
|
||||
<ListItemText primary="Quit Beta UI" sx={styleListItemText} />
|
||||
<ListItemText
|
||||
primary="Switch to stable UI"
|
||||
sx={styleListItemText}
|
||||
/>
|
||||
</ListItemButton>
|
||||
</ListItem>
|
||||
</List>
|
||||
|
||||
@@ -23,7 +23,6 @@ import { DebouncedInputTextField } from "./Debounce"
|
||||
import { studySummariesState } from "../state"
|
||||
import Brightness7Icon from "@mui/icons-material/Brightness7"
|
||||
import Brightness4Icon from "@mui/icons-material/Brightness4"
|
||||
import { useSnackbar } from "notistack"
|
||||
import { useDeleteStudyDialog } from "./DeleteStudyDialog"
|
||||
import { useCreateStudyDialog } from "./CreateStudyDialog"
|
||||
|
||||
@@ -31,7 +30,6 @@ export const StudyList: FC<{
|
||||
toggleColorMode: () => void
|
||||
}> = ({ toggleColorMode }) => {
|
||||
const theme = useTheme()
|
||||
const { enqueueSnackbar } = useSnackbar()
|
||||
|
||||
const [studyFilterText, setStudyFilterText] = React.useState<string>("")
|
||||
const studyFilter = (row: StudySummary) => {
|
||||
@@ -150,15 +148,6 @@ export const StudyList: FC<{
|
||||
)
|
||||
}
|
||||
|
||||
const sayThankYouForBetaUsers = () => {
|
||||
enqueueSnackbar(
|
||||
`Thanks for testing our beta UI. Share your feedback via a GitHub issue.`,
|
||||
{
|
||||
variant: "success",
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<AppBar position="static">
|
||||
@@ -225,11 +214,7 @@ export const StudyList: FC<{
|
||||
<CardContent>
|
||||
<Typography>
|
||||
{`We would appreciate your feedback on our beta UI. Click `}
|
||||
<Link
|
||||
to={`${URL_PREFIX}/beta`}
|
||||
style={{ color: linkColor }}
|
||||
onClick={sayThankYouForBetaUsers}
|
||||
>
|
||||
<Link to={`${URL_PREFIX}/beta`} style={{ color: linkColor }}>
|
||||
here
|
||||
</Link>
|
||||
{" to try it out and share your thoughts."}
|
||||
|
||||
Reference in New Issue
Block a user