parent
6e96ec840d
commit
888e6a3439
@ -14,6 +14,7 @@ import { Icon } from 'flavours/glitch/components/icon';
|
|||||||
import {
|
import {
|
||||||
selectSettingsNotificationsQuickFilterActive,
|
selectSettingsNotificationsQuickFilterActive,
|
||||||
selectSettingsNotificationsQuickFilterAdvanced,
|
selectSettingsNotificationsQuickFilterAdvanced,
|
||||||
|
selectSettingsNotificationsQuickFilterShow,
|
||||||
} from 'flavours/glitch/selectors/settings';
|
} from 'flavours/glitch/selectors/settings';
|
||||||
import { useAppDispatch, useAppSelector } from 'flavours/glitch/store';
|
import { useAppDispatch, useAppSelector } from 'flavours/glitch/store';
|
||||||
|
|
||||||
@ -65,6 +66,11 @@ export const FilterBar: React.FC = () => {
|
|||||||
const advancedMode = useAppSelector(
|
const advancedMode = useAppSelector(
|
||||||
selectSettingsNotificationsQuickFilterAdvanced,
|
selectSettingsNotificationsQuickFilterAdvanced,
|
||||||
);
|
);
|
||||||
|
const useFilterBar = useAppSelector(
|
||||||
|
selectSettingsNotificationsQuickFilterShow,
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!useFilterBar) return null;
|
||||||
|
|
||||||
if (advancedMode)
|
if (advancedMode)
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user