diff --git a/packages/web-shared/components/Auth/AuthConfirm.js b/packages/web-shared/components/Auth/AuthConfirm.js index 5299497a..444bc485 100644 --- a/packages/web-shared/components/Auth/AuthConfirm.js +++ b/packages/web-shared/components/Auth/AuthConfirm.js @@ -11,7 +11,7 @@ import AuthLayout from './AuthLayout'; import authSteps from './authSteps'; import { useAnalytics } from '../../providers/AnalyticsProvider'; -const AuthConfirm = () => { +const AuthConfirm = (props) => { const [status, setStatus] = useState('IDLE'); const [error, setError] = useState(null); const [state, dispatch] = useAuth(); @@ -63,7 +63,7 @@ const AuthConfirm = () => { email: user?.email, phone: user?.phone, numberOfSharedProfiles: sharedProfiles.length, - }); + }); dispatch( updateAuth({ token, @@ -77,7 +77,7 @@ const AuthConfirm = () => { userId: user?.id, email: user?.email, phone: user?.phone, - }); + }); if (needsOnboarding) { dispatch( updateAuth({ @@ -130,6 +130,7 @@ const AuthConfirm = () => { return ( diff --git a/packages/web-shared/components/Auth/AuthDetails.js b/packages/web-shared/components/Auth/AuthDetails.js index 248a12cd..a5582b84 100644 --- a/packages/web-shared/components/Auth/AuthDetails.js +++ b/packages/web-shared/components/Auth/AuthDetails.js @@ -1,11 +1,6 @@ import React, { useState, useEffect } from 'react'; -import { - useForm, - useUpdateProfileFields, - useCurrentUser, - useCompleteRegister, -} from '../../hooks'; +import { useForm, useUpdateProfileFields, useCurrentUser, useCompleteRegister } from '../../hooks'; import { update as updateAuth, useAuth } from '../../providers/AuthProvider'; import { Box, Button, Input, Select } from '../../ui-kit'; import authSteps from '../Auth/authSteps'; @@ -16,7 +11,7 @@ function upperFirst(string) { return string.charAt(0).toUpperCase() + string.slice(1); } -function AuthDetails() { +function AuthDetails(props) { const [status, setStatus] = useState('IDLE'); const [error, setError] = useState(null); const [user, setUser] = useState(null); @@ -61,6 +56,7 @@ function AuthDetails() { return ( { +const AuthIdentity = (props) => { const [status, setStatus] = useState('IDLE'); const [error, setError] = useState(null); const [state, dispatch] = useAuth(); @@ -72,9 +72,7 @@ const AuthIdentity = () => { setStatus('LOADING'); requestLogin({ variables: { - identity: validEmail - ? { email: values.identity } - : { phone: values.identity }, + identity: validEmail ? { email: values.identity } : { phone: values.identity }, }, }); } else { @@ -87,9 +85,8 @@ const AuthIdentity = () => { return ( } /> - ) : null} + ) : ( +