fix(ToggleBtn): Make name required
radio buttons must share a name property
This commit is contained in:
@ -80,6 +80,7 @@ export default function EmailSettings({
|
||||
</Col>
|
||||
<Col sm={ 4 }>
|
||||
<TB
|
||||
name='monthly-email'
|
||||
onChange={ toggleMonthlyEmail }
|
||||
value={ sendMonthlyEmail }
|
||||
/>
|
||||
@ -95,6 +96,7 @@ export default function EmailSettings({
|
||||
</Col>
|
||||
<Col sm={ 4 }>
|
||||
<TB
|
||||
name='notifications-email'
|
||||
onChange={ toggleNotificationEmail }
|
||||
value={ sendNotificationEmail }
|
||||
/>
|
||||
@ -110,6 +112,7 @@ export default function EmailSettings({
|
||||
</Col>
|
||||
<Col sm={ 4 }>
|
||||
<TB
|
||||
name='quincy-email'
|
||||
onChange={ toggleQuincyEmail }
|
||||
value={ sendQuincyEmail }
|
||||
/>
|
||||
|
@ -5,7 +5,7 @@ import { ToggleButtonGroup as BSBG, ToggleButton as TB } from 'react-bootstrap';
|
||||
import ns from './ns.json';
|
||||
|
||||
const propTypes = {
|
||||
name: PropTypes.string,
|
||||
name: PropTypes.string.isRequired,
|
||||
onChange: PropTypes.func.isRequired,
|
||||
value: PropTypes.bool.isRequired
|
||||
};
|
||||
|
Reference in New Issue
Block a user