feat: make email and password updatable

This commit is contained in:
Ali BARIN
2022-03-30 21:18:57 +02:00
committed by Ömer Faruk Aydın
parent b8fb84ef42
commit bb6c464770
8 changed files with 202 additions and 42 deletions

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;
}