|
@ -10,6 +10,7 @@ import { |
|
|
StyledInputNumber, |
|
|
StyledInputNumber, |
|
|
StyledInputPickerContainer, |
|
|
StyledInputPickerContainer, |
|
|
StyledRadio, |
|
|
StyledRadio, |
|
|
|
|
|
StyledToggle, |
|
|
} from '../shared/styled'; |
|
|
} from '../shared/styled'; |
|
|
|
|
|
|
|
|
const FilterHeader = styled.div` |
|
|
const FilterHeader = styled.div` |
|
@ -134,16 +135,23 @@ const AdvancedFilters = ({ filteredData, originalData, filter, setAdvancedFilter |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<div> |
|
|
<div> |
|
|
<FilterHeader>Filters</FilterHeader> |
|
|
<FilterHeader> |
|
|
<StyledCheckbox |
|
|
<FlexboxGrid justify="space-between"> |
|
|
|
|
|
<FlexboxGrid.Item>Filters</FlexboxGrid.Item> |
|
|
|
|
|
<FlexboxGrid.Item> |
|
|
|
|
|
<StyledToggle |
|
|
|
|
|
size="md" |
|
|
|
|
|
checkedChildren="On" |
|
|
|
|
|
unCheckedChildren="Off" |
|
|
defaultChecked={filter.enabled} |
|
|
defaultChecked={filter.enabled} |
|
|
checked={filter.enabled} |
|
|
checked={filter.enabled} |
|
|
onChange={(_v: any, e: boolean) => { |
|
|
onChange={(e: boolean) => { |
|
|
dispatch(setAdvancedFilters({ filter: 'enabled', value: e })); |
|
|
dispatch(setAdvancedFilters({ filter: 'enabled', value: e })); |
|
|
}} |
|
|
}} |
|
|
> |
|
|
/> |
|
|
Enabled |
|
|
</FlexboxGrid.Item> |
|
|
</StyledCheckbox> |
|
|
</FlexboxGrid> |
|
|
|
|
|
</FilterHeader> |
|
|
<StyledCheckbox |
|
|
<StyledCheckbox |
|
|
defaultChecked={filter.properties.starred} |
|
|
defaultChecked={filter.properties.starred} |
|
|
checked={filter.properties.starred} |
|
|
checked={filter.properties.starred} |
|
@ -158,7 +166,7 @@ const AdvancedFilters = ({ filteredData, originalData, filter, setAdvancedFilter |
|
|
> |
|
|
> |
|
|
Is favorite |
|
|
Is favorite |
|
|
</StyledCheckbox> |
|
|
</StyledCheckbox> |
|
|
<br /> |
|
|
<Divider /> |
|
|
<FilterHeader>Genres</FilterHeader> |
|
|
<FilterHeader>Genres</FilterHeader> |
|
|
<RadioGroup |
|
|
<RadioGroup |
|
|
inline |
|
|
inline |
|
@ -212,7 +220,7 @@ const AdvancedFilters = ({ filteredData, originalData, filter, setAdvancedFilter |
|
|
/> |
|
|
/> |
|
|
</ButtonToolbar> |
|
|
</ButtonToolbar> |
|
|
</StyledInputPickerContainer> |
|
|
</StyledInputPickerContainer> |
|
|
<br /> |
|
|
<Divider /> |
|
|
<FilterHeader>Artists</FilterHeader> |
|
|
<FilterHeader>Artists</FilterHeader> |
|
|
<RadioGroup |
|
|
<RadioGroup |
|
|
inline |
|
|
inline |
|
@ -269,6 +277,7 @@ const AdvancedFilters = ({ filteredData, originalData, filter, setAdvancedFilter |
|
|
/> |
|
|
/> |
|
|
</ButtonToolbar> |
|
|
</ButtonToolbar> |
|
|
</StyledInputPickerContainer> |
|
|
</StyledInputPickerContainer> |
|
|
|
|
|
<Divider /> |
|
|
<FilterHeader> |
|
|
<FilterHeader> |
|
|
<FlexboxGrid justify="space-between"> |
|
|
<FlexboxGrid justify="space-between"> |
|
|
<FlexboxGrid.Item>Years</FlexboxGrid.Item> |
|
|
<FlexboxGrid.Item>Years</FlexboxGrid.Item> |
|
|