Skip to content

Commit d9b0ae7

Browse files
authored
Merge pull request #7720 from mediafreakch/patch-1
Fix example for BooleanInput
2 parents 54c860b + 4ef4ffa commit d9b0ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/BooleanInput.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You can use the `options` prop to pass any option supported by the MUI's `Switch
2424
import { BooleanInput } from 'react-admin';
2525
import FavoriteIcon from '@mui/icons-material/Favorite';
2626

27-
<BooleanInput source="favorite" checkedIcon={<FavoriteIcon />} />
27+
<BooleanInput source="favorite" options={{ checkedIcon: <FavoriteIcon /> }} />
2828
```
2929
{% endraw %}
3030

0 commit comments

Comments
 (0)