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

@ -1,9 +1,9 @@
import Loading from './components/Loading'
import { useGlobalStateContext } from 'hooks/useGlobalStateContext'
import { useSettingsAuthContext } from 'hooks/useSettingsAuthContext'
// Wrapper around protected routes, used in src/Router.tsx
export const Auth = ({ children }: React.PropsWithChildren) => {
const { auth } = useGlobalStateContext()
const { auth } = useSettingsAuthContext()
const isLoggingIn = auth?.state.matches('checkIfLoggedIn')
return isLoggingIn ? (