Просмотр исходного кода

Change variable declaration location + apply prettier

GitOrigin-RevId: 3237a417c23d5c66c47385e55f8d3cb68bdfc3ca
M Fahru 3 лет назад
Родитель
Сommit
c2b0707c2a

+ 3 - 1
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<boolean>('ui.loadingStyleSheet')
   const [chosenTheme, setChosenTheme] = useState<OverallThemeMeta | null>(null)
+  const [loadingStyleSheet, setLoadingStyleSheet] = useScopeValue<boolean>(
+    'ui.loadingStyleSheet'
+  )
   const [overallThemeScope, setOverallThemeScope] = useScopeValue<OverallTheme>(
     'settings.overallTheme'
   )