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' }}
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user