Skip to content

Commit

Permalink
migrate LibraryOptions to Mui 5 (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriaMoradi authored Nov 15, 2021
1 parent 6f86f05 commit 556d708
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/library/LibraryOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@ import FilterListIcon from '@mui/icons-material/FilterList';
import { Drawer, FormControlLabel, IconButton } from '@mui/material';
import useLibraryOptions from 'util/useLibraryOptions';
import ThreeStateCheckbox from 'components/util/ThreeStateCheckbox';
import { Box } from '@mui/system';

function Options() {
const {
downloaded, setDownloaded, unread, setUnread,
} = useLibraryOptions();
return (
<div style={{ display: 'flex', flexDirection: 'column' }}>
<Box sx={{ display: 'flex', flexDirection: 'column' }}>
<FormControlLabel control={<ThreeStateCheckbox name="Unread" checked={unread} onChange={setUnread} />} label="Unread" />
<FormControlLabel control={<ThreeStateCheckbox name="Downloaded" checked={downloaded} onChange={setDownloaded} />} label="Downloaded" />
</div>
</Box>
);
}

Expand Down

0 comments on commit 556d708

Please sign in to comment.