material-ui add icon to switch when on
import React from 'react';
import Switch from '@material-ui/core/Switch';
import AccountCircleIcon from '@material-ui/icons/AccountCircle';
export default function App() {
return (
<Switch
checkedIcon={<AccountCircleIcon/>}
/>
);
}