Fakultas Ilmu Komputer UI

Commit 14262bfe authored by Bagus Prabowo's avatar Bagus Prabowo Committed by Ahmad Izzudin Alifyandra
Browse files

Create ecosystem screen navigator

parent 171a9d02
......@@ -13,7 +13,7 @@ const CreateEcosystemStackNavigator = () => {
<CreateEcosystemStack.Screen
name="CreateEcosystemScreen"
component={CreateEcosystemScreen}
options={{ headerShown: false }}
options={{ title: "" }}
/>
<CreateEcosystemStack.Screen
name="BusinessCategory"
......
......@@ -57,30 +57,32 @@ const RootNavigator = () => {
<RootStack.Navigator>
{user.id === "" && (
<RootStack.Screen
name="CreateEcosystem"
component={CreateEcosystemStackNavigator}
name="Auth"
component={AuthStackNavigator}
options={{ headerShown: false }}
/>
)}
{user.id === "" && (
{user.id !== "" && (
<RootStack.Screen
name="MainTab"
component={BottomTabNavigator}
options={{ headerShown: false }}
/>
)}
{user.id === "" && (
{user.id !== "" && (
<RootStack.Screen
name="Auth"
component={AuthStackNavigator}
name="CreateEcosystem"
component={CreateEcosystemStackNavigator}
options={{ headerShown: false }}
/>
)}
{user.id !== "" && (
<RootStack.Screen
name="SuccessChangePassword"
component={SuccessChangePasswordScreen}
options={{ headerShown: false }}
/>
)}
<RootStack.Screen
name="SuccessChangePassword"
component={SuccessChangePasswordScreen}
options={{ headerShown: false }}
/>
</RootStack.Navigator>
) : (
<RootStack.Navigator>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment