feat: make email and password updatable

This commit is contained in:
Ali BARIN
2022-04-01 00:38:54 +03:00
committed by Ömer Faruk Aydın
parent b8fb84ef42
commit bb6c464770
8 changed files with 202 additions and 42 deletions
+10
View File
@@ -0,0 +1,10 @@
import { useQuery } from '@apollo/client';
import { IUser } from '@automatisch/types';
import { GET_CURRENT_USER } from 'graphql/queries/get-current-user';
export default function useCurrentUser(): IUser {
const { data } = useQuery(GET_CURRENT_USER, { fetchPolicy: 'cache-and-network' });
return data?.getCurrentUser;
}