Makes campaigns load all types of docs and then link to the docs
This commit is contained in:
@@ -29,7 +29,9 @@ const AuthContext = createContext<AuthContextValue | undefined>(undefined);
|
||||
*/
|
||||
export function AuthProvider({ children }: { children: ReactNode }) {
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const [user, setUser] = useState<AuthRecord | null>(pb.authStore.record);
|
||||
const [user, setUser] = useState<AuthRecord | null>(
|
||||
pb.authStore.isValid ? pb.authStore.record : null,
|
||||
);
|
||||
|
||||
const navigate = useNavigate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user