Skip to content

Commit

Permalink
fix: load/save preset width
Browse files Browse the repository at this point in the history
  • Loading branch information
topliceanurazvan committed May 27, 2022
1 parent 30726d8 commit 56f722b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/molecules/ResourceFilter/ResourceFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const ResourceFilter = () => {
);
const fileMap = useAppSelector(state => state.main.fileMap);
const filtersMap = useAppSelector(state => state.main.resourceFilter);
const paneConfiguration = useAppSelector(state => state.ui.paneConfiguration);
const resourceMap = useAppSelector(state => state.main.resourceMap);

const allResourceKinds = useMemo(() => {
Expand Down Expand Up @@ -195,10 +196,10 @@ const ResourceFilter = () => {

<S.TitleActions>
<S.PresetButton type="link" onClick={onClickLoadPreset}>
Load preset
Load {paneConfiguration.navPane < 0.18 ? '' : 'preset'}
</S.PresetButton>
<S.PresetButton disabled={isSavePresetDisabled} type="link" onClick={onClickSavePreset}>
Save preset
Save {paneConfiguration.navPane < 0.18 ? '' : 'preset'}
</S.PresetButton>

<Tooltip title={ResetFiltersTooltip}>
Expand Down

0 comments on commit 56f722b

Please sign in to comment.