Fix: missing export

This commit is contained in:
Tainan Felipe 2023-09-25 10:17:39 -03:00
parent 09e3fb3f83
commit ad50952cf5

View File

@ -4,7 +4,7 @@ import { User } from '../../Types/user';
const useCurrentUserSubscription = createUseSubscription<Partial<User>>(CURRENT_USER_SUBSCRIPTION, false);
const useCurrentUser = (fn: (c: Partial<User>) => Partial<User>) => {
export const useCurrentUser = (fn: (c: Partial<User>) => Partial<User>) => {
const currentUser = useCurrentUserSubscription(fn)[0];
return currentUser;
};