theme toggle actually toggles theme; sign-in button actually signs in

This commit is contained in:
Carter 2024-11-01 12:50:05 -06:00
parent bce4089903
commit 6329378586
5 changed files with 22 additions and 14 deletions

View file

@ -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;

View file

@ -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>
)
}