feat: add /users/@me endpoint, add edit button to profile page

This commit is contained in:
Sam 2022-05-13 16:43:28 +02:00
parent d2f4e09a01
commit 15797b679c
8 changed files with 115 additions and 40 deletions

View file

@ -27,3 +27,8 @@ async function getCurrentUser() {
return null;
}
export function isMeUser(id: string): boolean {
const meUser = useRecoilValue(userState);
return meUser && meUser.id === id;
}