Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1875 | Filters button on the left
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Sep 24, 2024
1 parent 81c0573 commit 28ebb70
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/search/SearchResults.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const ResultsToolbar = props => {
return (
<Toolbar
sx={{
pl: { sm: 2 },
pl: { sm: 1 },
pr: { xs: 1, sm: 1 },
...(numSelected > 0 && {
bgcolor: (theme) =>
Expand All @@ -33,6 +33,12 @@ const ResultsToolbar = props => {
borderTopRightRadius: '8px'
}}
>
{
isFilterable &&
<IconButton style={{marginRight: '4px'}} onClick={onFiltersToggle} disabled={Boolean(disabled)}>
<FilterListIcon />
</IconButton>
}
{numSelected > 0 ? (
<Typography
sx={{ flex: '1 1 100%' }}
Expand Down Expand Up @@ -67,12 +73,6 @@ const ResultsToolbar = props => {
sortableFields={sortableFields}
noCardDisplay={noCardDisplay}
/>
{
isFilterable &&
<IconButton style={{marginLeft: '5px'}} onClick={onFiltersToggle} disabled={Boolean(disabled)}>
<FilterListIcon />
</IconButton>
}
</Toolbar>
);
}
Expand Down

0 comments on commit 28ebb70

Please sign in to comment.