()
| 3 | import Bbb from './Bbb'; |
| 4 | |
| 5 | const Aaa: React.FC = () => { |
| 6 | const [disabled, setDisabled] = useState(false); |
| 7 | |
| 8 | const onChange = (checked: boolean) => { |
| 9 | setDisabled(checked); |
| 10 | }; |
| 11 | |
| 12 | return ( |
| 13 | <> |
| 14 | <div> |
| 15 | <Slider defaultValue={30} disabled={disabled} /> |
| 16 | <Slider range defaultValue={[20, 50]} disabled={disabled} /> |
| 17 | Disabled: <Switch size="small" checked={disabled} onChange={onChange} /> |
| 18 | </div> |
| 19 | <Bbb></Bbb> |
| 20 | </> |
| 21 | ); |
| 22 | }; |
| 23 | |
| 24 | export default Aaa; |
nothing calls this directly
no test coverage detected