mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 18:48:06 +01:00
Merge branch 'upstream-stable/4.3' into stable/4.3
This commit is contained in:
commit
3a69ab2ba8
1 changed files with 6 additions and 0 deletions
|
@ -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 (
|
||||||
|
|
Loading…
Reference in a new issue