Rename *GlobalState* to *SettingsAuth* (#1689)

This commit is contained in:
Frank Noirot
2024-03-11 20:26:13 -04:00
committed by GitHub
parent 0342d1a5b4
commit cd158f8db0
25 changed files with 61 additions and 61 deletions

View File

@ -5,7 +5,7 @@ import {
useNextClick,
} from '.'
import { onboardingPaths } from 'routes/Onboarding/paths'
import { useGlobalStateContext } from 'hooks/useGlobalStateContext'
import { useSettingsAuthContext } from 'hooks/useSettingsAuthContext'
import { Themes, getSystemTheme } from 'lib/theme'
import { bracket } from 'lib/exampleKcl'
import {
@ -31,7 +31,7 @@ function OnboardingWithNewFile() {
settings: {
context: { defaultDirectory },
},
} = useGlobalStateContext()
} = useSettingsAuthContext()
async function createAndOpenNewProject() {
const projects = await getProjectsInDir(defaultDirectory)
@ -111,7 +111,7 @@ export default function Introduction() {
context: { theme },
},
},
} = useGlobalStateContext()
} = useSettingsAuthContext()
const getLogoTheme = () =>
theme === Themes.Light ||
(theme === Themes.System && getSystemTheme() === Themes.Light)