mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-22 21:29:05 +00:00
cover TODOs + cross-tab cache
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import { Flex, Spinner } from "@chakra-ui/react";
|
||||
import useAuthReady from "../lib/useAuthReady";
|
||||
import { useAuth } from "../lib/AuthProvider";
|
||||
|
||||
export default function AuthWrapper({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
const { isLoading } = useAuthReady();
|
||||
const auth = useAuth();
|
||||
|
||||
if (isLoading) {
|
||||
if (auth.status === "loading") {
|
||||
return (
|
||||
<Flex
|
||||
flexDir="column"
|
||||
|
||||
Reference in New Issue
Block a user