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' }}
/>
<Typography variant="h6" gutterBottom>{t('recordingtable.modal.login_title')}</Typography>
<RadioGroup
aria-labelledby="login-requirement-radio-group"
name="login-requirement"
value={isLogin ? 'yes' : 'no'}
onChange={(e) => setIsLogin(e.target.value === 'yes')}
style={{ marginBottom: '20px' }}
>
<FormControlLabel value="yes" control={<Radio />} label="Yes" />
<FormControlLabel value="no" control={<Radio />} label="No" />
</RadioGroup>
<Typography variant="h6" gutterBottom>
{t('recordingtable.modal.login_title')}
</Typography>
<FormControlLabel
control={
<Checkbox
checked={isLogin}
onChange={(e) => setIsLogin(e.target.checked)}
color="primary"
/>
}
label={t('recordingtable.modal.login_title')}
style={{ marginBottom: '20px' }}
/>;
<Button
variant="contained"