feat: simplify login and register

This commit is contained in:
2026-08-11 14:35:08 +02:00
parent afc48375ae
commit 1de35c4e43
2 changed files with 81 additions and 158 deletions
+5 -2
View File
@@ -6,7 +6,6 @@ import { Routes } from '../navigation'
import { SplashAnimationContext } from '../providers/SplashAnimationProvider'
import { UserDataContext } from '../providers/UserDataProvider'
import { getRouteAfterAuthentication } from '../utils/registrationFlow'
export default ({ navigation }) => {
const { setCurrentUserData } = useContext(UserDataContext)
@@ -29,7 +28,11 @@ export default ({ navigation }) => {
index: 0,
routes: [
{
name: getRouteAfterAuthentication(user),
name: Routes.BottomTab,
params: {
screen: Routes.HomeStack,
params: { screen: Routes.Home },
},
},
],
})