feat: use checkbox instead of radio group
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user