mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 23:31:10 +10:00
implement new invitation system
* fix comments on the frontend * move jwt token service to its own module * other fixes and updates
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { useAtom } from 'jotai';
|
||||
import { currentUserAtom } from '@/features/user/atoms/current-user-atom';
|
||||
import React, { useEffect } from 'react';
|
||||
import useCurrentUser from '@/features/user/hooks/use-current-user';
|
||||
import { useAtom } from "jotai";
|
||||
import { currentUserAtom } from "@/features/user/atoms/current-user-atom";
|
||||
import React, { useEffect } from "react";
|
||||
import useCurrentUser from "@/features/user/hooks/use-current-user";
|
||||
|
||||
export function UserProvider({ children }: React.PropsWithChildren) {
|
||||
const [, setCurrentUser] = useAtom(currentUserAtom);
|
||||
@ -16,6 +16,7 @@ export function UserProvider({ children }: React.PropsWithChildren) {
|
||||
if (isLoading) return <></>;
|
||||
|
||||
if (error) {
|
||||
console.error(error);
|
||||
return <>an error occurred</>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user