feat: refine creation and registration flows
This commit is contained in:
@@ -13,7 +13,7 @@ import firebase, { usersRef } from '../config/firebase'
|
||||
import Page from '../layouts/Page'
|
||||
import { isWeb } from '../hooks/useLayoutType'
|
||||
import { Routes } from '../navigation'
|
||||
import { navigate } from '../navigation/NavigationService'
|
||||
import { reset } from '../navigation/NavigationService'
|
||||
import { Palette } from '../styles'
|
||||
import { FONT_FAMILY } from '../styles/Fonts'
|
||||
|
||||
@@ -115,13 +115,14 @@ const CreatePassword = () => {
|
||||
...(birthDate ? { birthDate } : {}),
|
||||
...(country?.code ? { countryCode: country.code } : {}),
|
||||
...(country?.name ? { countryName: country.name } : {}),
|
||||
registrationFlowRequired: true,
|
||||
createdAt: firebase.firestore.FieldValue.serverTimestamp(),
|
||||
updatedAt: firebase.firestore.FieldValue.serverTimestamp(),
|
||||
},
|
||||
{ merge: true }
|
||||
)
|
||||
setTooltip({ text: 'Compte créé, continuons', type: 'success' })
|
||||
navigate(Routes.BottomTab)
|
||||
reset({ index: 0, routes: [{ name: Routes.RegistrationChoice }] })
|
||||
} catch (e) {
|
||||
console.log('Register error', e?.message)
|
||||
const message =
|
||||
|
||||
Reference in New Issue
Block a user