From 727af7e26d144e4cbce981097e36a51939267c4f Mon Sep 17 00:00:00 2001 From: Meik Date: Mon, 10 Nov 2025 21:33:35 +0100 Subject: [PATCH] minor changes --- src/App.js | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/src/App.js b/src/App.js index 6f415be..52e5a67 100644 --- a/src/App.js +++ b/src/App.js @@ -591,6 +591,31 @@ function App() { setFocusedStoreId(storeId); }; + const userLocationWithLabel = useMemo(() => { + if (!preferences?.location) { + return null; + } + const label = inferLocationLabel(preferences.location, stores); + return label ? { ...preferences.location, label } : { ...preferences.location }; + }, [preferences?.location, stores]); + + const sharedNotificationProps = { + error: notificationError, + message: notificationMessage, + settings: notificationSettings, + capabilities: notificationCapabilities, + loading: notificationLoading, + dirty: notificationDirty, + saving: notificationSaving, + onReset: loadNotificationSettings, + onSave: saveNotificationSettings, + onFieldChange: handleNotificationFieldChange, + onSendTest: sendNotificationTest, + onCopyLink: copyToClipboard, + copyFeedback, + ntfyPreviewUrl + }; + if (!session?.token) { return ( <> @@ -635,31 +660,6 @@ function App() { ); } - const userLocationWithLabel = useMemo(() => { - if (!preferences?.location) { - return null; - } - const label = inferLocationLabel(preferences.location, stores); - return label ? { ...preferences.location, label } : { ...preferences.location }; - }, [preferences?.location, stores]); - - const sharedNotificationProps = { - error: notificationError, - message: notificationMessage, - settings: notificationSettings, - capabilities: notificationCapabilities, - loading: notificationLoading, - dirty: notificationDirty, - saving: notificationSaving, - onReset: loadNotificationSettings, - onSave: saveNotificationSettings, - onFieldChange: handleNotificationFieldChange, - onSendTest: sendNotificationTest, - onCopyLink: copyToClipboard, - copyFeedback, - ntfyPreviewUrl - }; - const dashboardContent = (