Fakultas Ilmu Komputer UI

Commit 20974875 authored by Faraz's avatar Faraz
Browse files

fix: navigation on create ecosystem button

parent d4a99efe
Pipeline #86289 passed with stage
in 9 minutes and 57 seconds
......@@ -60,7 +60,9 @@ const BusinessEcosystemScreen = () => {
<View>
<SmallButton
text={"Buat Ekosistem Bisnis"}
onPress={() => nav.navigate("CreateBusinessEcosystem")}
onPress={() =>
nav.navigate("CreateEcosystem", { screen: "CreateEcosystemScreen" })
}
colors={"primary"}
/>
</View>
......
......@@ -7,11 +7,13 @@ import Spacer from "../../components/Spacer/Spacer";
import { MaterialIcons } from "@expo/vector-icons";
import Layout from "../../constants/Layout";
import { EcosystemStackScreenProps } from "../../types/navigation";
import { useNavigation } from "@react-navigation/core";
const EcosystemDetailScreen = ({
route,
}: EcosystemStackScreenProps<"EcosystemDetails">) => {
const { title, desc, image, member, rating } = route.params;
const nav = useNavigation();
return (
<View style={styles.container}>
<View style={styles.imageWrapper}>
......
Supports Markdown
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