Merge branch 'upstream-stable/4.3' into stable/4.3

This commit is contained in:
Jeremy Kescher 2024-10-12 08:38:43 +02:00
commit 3a69ab2ba8
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4

View file

@ -15,6 +15,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';
@ -70,6 +71,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 (