mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-11 12:30:25 +08:00
Merge pull request #174 from optuna/button-description
Add title attr to buttons
This commit is contained in:
@@ -260,6 +260,11 @@ export const StudyDetail: FC<{
|
||||
toggleColorMode()
|
||||
}}
|
||||
color="inherit"
|
||||
title={
|
||||
theme.palette.mode === "dark"
|
||||
? "Switch to light mode"
|
||||
: "Switch to dark mode"
|
||||
}
|
||||
>
|
||||
{theme.palette.mode === "dark" ? (
|
||||
<Brightness7Icon />
|
||||
@@ -267,7 +272,11 @@ export const StudyDetail: FC<{
|
||||
<Brightness4Icon />
|
||||
)}
|
||||
</IconButton>
|
||||
<IconButton color="inherit" onClick={handleClickOpen}>
|
||||
<IconButton
|
||||
color="inherit"
|
||||
onClick={handleClickOpen}
|
||||
title="Open preference panel"
|
||||
>
|
||||
<Settings />
|
||||
</IconButton>
|
||||
<IconButton
|
||||
@@ -276,6 +285,7 @@ export const StudyDetail: FC<{
|
||||
component={Link}
|
||||
to={URL_PREFIX + "/"}
|
||||
color="inherit"
|
||||
title="Go to the top"
|
||||
>
|
||||
<Home />
|
||||
</IconButton>
|
||||
|
||||
@@ -231,6 +231,11 @@ export const StudyList: FC<{
|
||||
toggleColorMode()
|
||||
}}
|
||||
color="inherit"
|
||||
title={
|
||||
theme.palette.mode === "dark"
|
||||
? "Switch to light mode"
|
||||
: "Switch to dark mode"
|
||||
}
|
||||
>
|
||||
{theme.palette.mode === "dark" ? (
|
||||
<Brightness7Icon />
|
||||
@@ -245,6 +250,7 @@ export const StudyList: FC<{
|
||||
action.updateStudySummaries("Success to reload")
|
||||
}}
|
||||
color="inherit"
|
||||
title="Reload studies"
|
||||
>
|
||||
<Refresh />
|
||||
</IconButton>
|
||||
@@ -255,6 +261,7 @@ export const StudyList: FC<{
|
||||
setNewStudySelectionAnchorEl(e.currentTarget)
|
||||
}}
|
||||
color="inherit"
|
||||
title="Create new study"
|
||||
>
|
||||
<AddBox />
|
||||
</IconButton>
|
||||
|
||||
Reference in New Issue
Block a user