theme toggle actually toggles theme; sign-in button actually signs in
This commit is contained in:
parent
bce4089903
commit
6329378586
5 changed files with 22 additions and 14 deletions
|
|
@ -11,7 +11,7 @@ import { getThemeType, setThemeType } from '../theme/themeType'
|
|||
|
||||
function AuthHTTPWrapper() {
|
||||
const [token, setToken] = useState<string | undefined>(undefined)
|
||||
const [palette, setPalette] = useState<Theme>(CreateTheme("dark"));
|
||||
const [palette, setPalette] = useState<Theme>(CreateTheme(getThemeType()));
|
||||
|
||||
let url: string | undefined = import.meta.env.VITE_AUTH0_CLIENT_DOMAIN;
|
||||
let audience: string | undefined = import.meta.env.VITE_AUTH0_AUDIENCE;
|
||||
|
|
|
|||
|
|
@ -74,8 +74,6 @@ export default function UserWrapper(props: Props) {
|
|||
loadUser()
|
||||
}, [loading])
|
||||
|
||||
console.log(loading)
|
||||
console.log(global)
|
||||
if (loading || !global) return (
|
||||
<LoadingScreen />
|
||||
)
|
||||
|
|
@ -104,6 +102,5 @@ export default function UserWrapper(props: Props) {
|
|||
</p>
|
||||
</NavigationContainer>
|
||||
</StateProvider>
|
||||
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue