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

@ -10,7 +10,7 @@ import {
} from 'xstate'
import { SetSelections, modelingMachine } from 'machines/modelingMachine'
import { useSetupEngineManager } from 'hooks/useSetupEngineManager'
import { useGlobalStateContext } from 'hooks/useGlobalStateContext'
import { useSettingsAuthContext } from 'hooks/useSettingsAuthContext'
import { isCursorInSketchCommandRange } from 'lang/util'
import { engineCommandManager } from 'lang/std/engineConnection'
import { kclManager, useKclContext } from 'lang/KclSingleton'
@ -63,7 +63,7 @@ export const ModelingMachineProvider = ({
settings: {
context: { baseUnit },
},
} = useGlobalStateContext()
} = useSettingsAuthContext()
const { code } = useKclContext()
const token = auth?.context?.token
const streamRef = useRef<HTMLDivElement>(null)