From 28568957dc05b30f9b11daeb1107d0e68955ebcd Mon Sep 17 00:00:00 2001 From: amhsirak Date: Wed, 22 Jan 2025 19:05:41 +0530 Subject: [PATCH 01/10] fix: format --- src/components/robot/RecordingsTable.tsx | 27 ++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/components/robot/RecordingsTable.tsx b/src/components/robot/RecordingsTable.tsx index e7409b89..81e44136 100644 --- a/src/components/robot/RecordingsTable.tsx +++ b/src/components/robot/RecordingsTable.tsx @@ -11,8 +11,31 @@ import TableRow from '@mui/material/TableRow'; import { useEffect } from "react"; import { WorkflowFile } from "maxun-core"; import SearchIcon from '@mui/icons-material/Search'; -import { IconButton, Button, Box, Typography, TextField, MenuItem, Menu, ListItemIcon, ListItemText, CircularProgress, RadioGroup, FormControlLabel, Radio } from "@mui/material"; -import { Schedule, DeleteForever, Edit, PlayCircle, Settings, Power, ContentCopy, MoreHoriz } from "@mui/icons-material"; +import { + IconButton, + Button, + Box, + Typography, + TextField, + MenuItem, + Menu, + ListItemIcon, + ListItemText, + CircularProgress, + RadioGroup, + FormControlLabel, + Radio +} from "@mui/material"; +import { + Schedule, + DeleteForever, + Edit, + PlayCircle, + Settings, + Power, + ContentCopy, + MoreHoriz +} from "@mui/icons-material"; import { useGlobalInfoStore } from "../../context/globalInfo"; import { checkRunsForRecording, deleteRecordingFromStorage, getStoredRecordings } from "../../api/storage"; import { Add } from "@mui/icons-material"; From 57860f17a87f60fd5fc36108f878cacbffd9376e Mon Sep 17 00:00:00 2001 From: amhsirak Date: Wed, 22 Jan 2025 19:07:20 +0530 Subject: [PATCH 02/10] fix: missing Checkbox import --- src/components/robot/RecordingsTable.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/robot/RecordingsTable.tsx b/src/components/robot/RecordingsTable.tsx index 81e44136..bcfaaad4 100644 --- a/src/components/robot/RecordingsTable.tsx +++ b/src/components/robot/RecordingsTable.tsx @@ -24,7 +24,8 @@ import { CircularProgress, RadioGroup, FormControlLabel, - Radio + Radio, + Checkbox, } from "@mui/material"; import { Schedule, From d3f9829643650d7daf918b335e712570244de29f Mon Sep 17 00:00:00 2001 From: amhsirak Date: Wed, 22 Jan 2025 19:08:51 +0530 Subject: [PATCH 03/10] feat: use checkbox instead of radio group --- src/components/robot/RecordingsTable.tsx | 25 +++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/components/robot/RecordingsTable.tsx b/src/components/robot/RecordingsTable.tsx index bcfaaad4..7b5f7c84 100644 --- a/src/components/robot/RecordingsTable.tsx +++ b/src/components/robot/RecordingsTable.tsx @@ -346,17 +346,20 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl style={{ marginBottom: '20px', marginTop: '20px' }} /> - {t('recordingtable.modal.login_title')} - setIsLogin(e.target.value === 'yes')} - style={{ marginBottom: '20px' }} - > - } label="Yes" /> - } label="No" /> - + + {t('recordingtable.modal.login_title')} + + setIsLogin(e.target.checked)} + color="primary" + /> + } + label={t('recordingtable.modal.login_title')} + style={{ marginBottom: '20px' }} +/>;