Rename *GlobalState* to *SettingsAuth* (#1689)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user