feat: use checkbox instead of radio group

This commit is contained in:
amhsirak
2025-01-22 19:08:51 +05:30
parent 57860f17a8
commit d3f9829643

View File

@@ -346,17 +346,20 @@ export const RecordingsTable = ({ handleEditRecording, handleRunRecording, handl
style={{ marginBottom: '20px', marginTop: '20px' }} style={{ marginBottom: '20px', marginTop: '20px' }}
/> />
<Typography variant="h6" gutterBottom>{t('recordingtable.modal.login_title')}</Typography> <Typography variant="h6" gutterBottom>
<RadioGroup {t('recordingtable.modal.login_title')}
aria-labelledby="login-requirement-radio-group" </Typography>
name="login-requirement" <FormControlLabel
value={isLogin ? 'yes' : 'no'} control={
onChange={(e) => setIsLogin(e.target.value === 'yes')} <Checkbox
style={{ marginBottom: '20px' }} checked={isLogin}
> onChange={(e) => setIsLogin(e.target.checked)}
<FormControlLabel value="yes" control={<Radio />} label="Yes" /> color="primary"
<FormControlLabel value="no" control={<Radio />} label="No" /> />
</RadioGroup> }
label={t('recordingtable.modal.login_title')}
style={{ marginBottom: '20px' }}
/>;
<Button <Button
variant="contained" variant="contained"