Fakultas Ilmu Komputer UI

Commit 48e87398 authored by Faraz's avatar Faraz
Browse files

fix: bug on UserList in Create Ecosystem

parent 4db6309b
Pipeline #88783 passed with stage
in 9 minutes and 46 seconds
......@@ -14,6 +14,7 @@ import MainButton from "../../components/button/MainButton";
import { listUsers } from "../../types/listUsers";
import { useNavigation } from "@react-navigation/core";
import { CompositeScreenProps } from "@react-navigation/native";
import Spacer from "../../components/Spacer/Spacer";
const UserListScreen = ({
route,
}: CompositeScreenProps<
......@@ -56,7 +57,8 @@ const UserListScreen = ({
setCategoryMembers={setCategoryMember}
fromScreen={route.params.fromScreen}
/>
{route.params?.fromScreen === "CreateEcosystem" && (
{(route.params?.fromScreen === "CreateEcosystem" ||
route.params?.fromScreen === "CategoryUpdate") && (
<View>
<MainButton
text={"Simpan"}
......@@ -74,6 +76,7 @@ const UserListScreen = ({
}}
colors={"primary"}
/>
<Spacer variant={"xl"} />
</View>
)}
</View>
......
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