Skip to content

Commit

Permalink
Fix setting to hide the quick filter bar (glitch-soc#2882)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Oct 11, 2024
1 parent 6e96ec8 commit 888e6a3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { Icon } from 'flavours/glitch/components/icon';
import {
selectSettingsNotificationsQuickFilterActive,
selectSettingsNotificationsQuickFilterAdvanced,
selectSettingsNotificationsQuickFilterShow,
} from 'flavours/glitch/selectors/settings';
import { useAppDispatch, useAppSelector } from 'flavours/glitch/store';

Expand Down Expand Up @@ -65,6 +66,11 @@ export const FilterBar: React.FC = () => {
const advancedMode = useAppSelector(
selectSettingsNotificationsQuickFilterAdvanced,
);
const useFilterBar = useAppSelector(
selectSettingsNotificationsQuickFilterShow,
);

if (!useFilterBar) return null;

if (advancedMode)
return (
Expand Down

0 comments on commit 888e6a3

Please sign in to comment.