feat: onboarding ui flow (#464)
* feat: onboarding ui flow * fix: route naming and auth * fix: clean unused imports * fix: remove react.fc * fix: infra dev remove package.json * fix: remove usefull memoization * fix: button stories * fix: use type instead of interface * fix: remove debug
This commit is contained in:
@ -5,9 +5,7 @@ import { useApolloFactory } from '@/apollo/hooks/useApolloFactory';
|
||||
import useApolloMocked from '@/apollo/hooks/useApolloMocked';
|
||||
import { isMockModeState } from '@/auth/states/isMockModeState';
|
||||
|
||||
export const ApolloProvider: React.FC<React.PropsWithChildren> = ({
|
||||
children,
|
||||
}) => {
|
||||
export function ApolloProvider({ children }: React.PropsWithChildren) {
|
||||
const apolloClient = useApolloFactory();
|
||||
const mockedClient = useApolloMocked();
|
||||
|
||||
@ -18,4 +16,4 @@ export const ApolloProvider: React.FC<React.PropsWithChildren> = ({
|
||||
{children}
|
||||
</ApolloProviderBase>
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
@ -5,9 +5,7 @@ import { useFetchCurrentUser } from '@/auth/hooks/useFetchCurrentUser';
|
||||
import { currentUserState } from '@/auth/states/currentUserState';
|
||||
import { tokenPairState } from '@/auth/states/tokenPairState';
|
||||
|
||||
export const UserProvider: React.FC<React.PropsWithChildren> = ({
|
||||
children,
|
||||
}) => {
|
||||
export function UserProvider({ children }: React.PropsWithChildren) {
|
||||
const [, setCurrentUser] = useRecoilState(currentUserState);
|
||||
const [tokenPair] = useRecoilState(tokenPairState);
|
||||
const user = useFetchCurrentUser(tokenPair);
|
||||
@ -19,4 +17,4 @@ export const UserProvider: React.FC<React.PropsWithChildren> = ({
|
||||
}, [setCurrentUser, user]);
|
||||
|
||||
return <>{children}</>;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user