-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into gr-DUOS-2641-ds-datasets
- Loading branch information
Showing
19 changed files
with
645 additions
and
267 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import * as React from 'react'; | ||
import Box from '@mui/material/Box'; | ||
import List from '@mui/material/List'; | ||
import ListItem from '@mui/material/ListItem'; | ||
import ListItemButton from '@mui/material/ListItemButton'; | ||
import ListItemIcon from '@mui/material/ListItemIcon'; | ||
import ListItemText from '@mui/material/ListItemText'; | ||
import Divider from '@mui/material/Divider'; | ||
import { Typography } from '@mui/material'; | ||
import { Checkbox } from '@mui/material'; | ||
|
||
export const DatasetFilterList = (props) => { | ||
const { datasets, filters, filterHandler } = props; | ||
|
||
const isFiltered = (filter) => filters.indexOf(filter) > -1; | ||
|
||
return ( | ||
<Box sx={{ bgcolor: 'background.paper' }}> | ||
<Typography variant="h5" gutterBottom component="div" sx={{ fontFamily: 'Montserrat', fontWeight: '600' }}> | ||
Filters | ||
</Typography> | ||
<Divider /> | ||
<Typography variant="h6" gutterBottom component="div" sx={{ fontFamily: 'Montserrat', fontWeight: '600' }} marginTop="1em"> | ||
Access Type | ||
</Typography> | ||
<List sx={{ margin: '-0.5em -0.5em'}}> | ||
<ListItem disablePadding> | ||
<ListItemButton sx={{ padding: '0' }} onClick={(event) => filterHandler(event, datasets, 'open')}> | ||
<ListItemIcon> | ||
<Checkbox checked={isFiltered('open')} /> | ||
</ListItemIcon> | ||
<ListItemText primary="Open" sx={{ fontFamily: 'Montserrat', transform: 'scale(1.2)' }} /> | ||
</ListItemButton> | ||
</ListItem> | ||
<ListItem disablePadding> | ||
<ListItemButton sx={{ padding: '0' }} onClick={(event) => filterHandler(event, datasets, 'controlled')}> | ||
<ListItemIcon> | ||
<Checkbox checked={isFiltered('controlled')} /> | ||
</ListItemIcon> | ||
<ListItemText primary="Controlled" sx={{ fontFamily: 'Montserrat', transform: 'scale(1.2)' }} /> | ||
</ListItemButton> | ||
</ListItem> | ||
</List> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default DatasetFilterList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.