From 2637ff44031002bd614c6a3400a1d7be388f7b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Tue, 27 Aug 2024 23:20:31 +0200 Subject: [PATCH] Fix sidebar menu styles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/actions/push-notifications/index.ts | 12 ++++++------ src/components/sidebar-menu.tsx | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/actions/push-notifications/index.ts b/src/actions/push-notifications/index.ts index 69fdf2787..45110c389 100644 --- a/src/actions/push-notifications/index.ts +++ b/src/actions/push-notifications/index.ts @@ -9,6 +9,12 @@ import { import type { AppDispatch } from 'soapbox/store'; +const changeAlerts = (path: Array, value: any) => + (dispatch: AppDispatch) => { + dispatch(setAlerts(path, value)); + dispatch(saveSettings() as any); + }; + export { SET_BROWSER_SUPPORT, SET_SUBSCRIPTION, @@ -17,9 +23,3 @@ export { register, changeAlerts, }; - -const changeAlerts = (path: Array, value: any) => - (dispatch: AppDispatch) => { - dispatch(setAlerts(path, value)); - dispatch(saveSettings() as any); - }; diff --git a/src/components/sidebar-menu.tsx b/src/components/sidebar-menu.tsx index 44fa178e9..82c4e4746 100644 --- a/src/components/sidebar-menu.tsx +++ b/src/components/sidebar-menu.tsx @@ -194,7 +194,7 @@ const SidebarMenu: React.FC = (): JSX.Element | null => { }) } > -
+
{account ? (