diff --git a/frontend/src/lib/hooks.ts b/frontend/src/lib/hooks.ts index 045849c12..2eef3f2fd 100644 --- a/frontend/src/lib/hooks.ts +++ b/frontend/src/lib/hooks.ts @@ -26,15 +26,15 @@ export const useUser = () => useQuery({ queryKey: ["GetUser"], queryFn: () => client().auth({ type: "GetUser", params: {} }), + refetchInterval: 30_000, }); export const useUserInvalidate = () => { const qc = useQueryClient(); return () => { qc.invalidateQueries({ queryKey: ["GetUser"] }); - } -} - + }; +}; export const useInvalidate = () => { const qc = useQueryClient(); @@ -144,4 +144,4 @@ export const usePushRecentlyViewed = ({ type, id }: Types.ResourceTarget) => { }, [type, id, push]); return push; -}; \ No newline at end of file +}; diff --git a/frontend/src/pages/user_disabled.tsx b/frontend/src/pages/user_disabled.tsx new file mode 100644 index 000000000..19c86d780 --- /dev/null +++ b/frontend/src/pages/user_disabled.tsx @@ -0,0 +1,12 @@ +import { UserX } from "lucide-react"; + +export const UserDisabled = () => { + return ( +