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