From c2b0707c2a46ca8183e87ad760cc313caadbae81 Mon Sep 17 00:00:00 2001 From: M Fahru Date: Fri, 23 Dec 2022 16:43:46 -0700 Subject: [PATCH] Change variable declaration location + apply prettier GitOrigin-RevId: 3237a417c23d5c66c47385e55f8d3cb68bdfc3ca --- .../features/editor-left-menu/hooks/use-set-overall-theme.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/editor-left-menu/hooks/use-set-overall-theme.tsx b/services/web/frontend/js/features/editor-left-menu/hooks/use-set-overall-theme.tsx index 7390ca3e48..ae26458c33 100644 --- a/services/web/frontend/js/features/editor-left-menu/hooks/use-set-overall-theme.tsx +++ b/services/web/frontend/js/features/editor-left-menu/hooks/use-set-overall-theme.tsx @@ -6,8 +6,10 @@ import { OverallThemeMeta } from '../../../../../types/project-settings' import { saveUserSettings } from '../utils/api' export default function useSetOverallTheme() { - const [loadingStyleSheet, setLoadingStyleSheet] = useScopeValue('ui.loadingStyleSheet') const [chosenTheme, setChosenTheme] = useState(null) + const [loadingStyleSheet, setLoadingStyleSheet] = useScopeValue( + 'ui.loadingStyleSheet' + ) const [overallThemeScope, setOverallThemeScope] = useScopeValue( 'settings.overallTheme' )