From ff450ca0d28e5ccce0d86b0e4e85960be5f93e7f Mon Sep 17 00:00:00 2001 From: c-bata Date: Tue, 23 Feb 2021 15:54:12 +0900 Subject: [PATCH] Remove eslint warnings of StudyList.tsx --- .../static/components/StudyList.tsx | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/optuna_dashboard/static/components/StudyList.tsx b/optuna_dashboard/static/components/StudyList.tsx index 8e348ef1..ba1cc029 100644 --- a/optuna_dashboard/static/components/StudyList.tsx +++ b/optuna_dashboard/static/components/StudyList.tsx @@ -127,7 +127,7 @@ export const StudyList: FC = () => { aria-label="delete study" size="small" color="inherit" - onClick={(e) => { + onClick={() => { setDeleteStudyID(studies[i].study_id) setOpenDeleteStudyDialog(true) }} @@ -226,7 +226,7 @@ export const StudyList: FC = () => { { + onClick={() => { action.updateStudySummaries("Success to reload") }} color="inherit" @@ -256,12 +256,12 @@ export const StudyList: FC = () => { horizontal: "right", }} open={openNewStudySelection} - onClose={(e) => { + onClose={() => { setNewStudySelectionAnchorEl(null) }} > { + onClick={() => { setNewStudySelectionAnchorEl(null) setOpenNewSingleObjectiveStudyDialog(true) }} @@ -269,7 +269,7 @@ export const StudyList: FC = () => { Single-objective { + onClick={() => { setNewStudySelectionAnchorEl(null) setOpenNewMultiObjectiveStudyDialog(true) }} @@ -294,7 +294,7 @@ export const StudyList: FC = () => { { + onClose={() => { handleCloseNewSingleObjectiveStudyDialog() }} aria-labelledby="create-single-objective-study-form-dialog-title" @@ -323,7 +323,7 @@ export const StudyList: FC = () => { control={ { + onChange={() => { setMaximize(!maximize) }} color="primary" @@ -350,7 +350,7 @@ export const StudyList: FC = () => { { + onClose={() => { handleCloseNewMultiObjectiveStudyDialog() }} aria-labelledby="create-multi-objective-study-form-dialog-title" @@ -400,7 +400,7 @@ export const StudyList: FC = () => { variant="outlined" startIcon={} className={classes.objectiveButton} - onClick={(e) => { + onClick={() => { const newVal: StudyDirection[] = [...directions, "minimize"] setDirections(newVal) }} @@ -412,7 +412,7 @@ export const StudyList: FC = () => { startIcon={} className={classes.objectiveButton} disabled={directions.length <= 1} - onClick={(e) => { + onClick={() => { const newVal: StudyDirection[] = [...directions] newVal.pop() setDirections(newVal) @@ -443,7 +443,7 @@ export const StudyList: FC = () => { { + onClose={() => { handleCloseDeleteStudyDialog() }} aria-labelledby="delete-study-dialog-title"