upd: tampilan

Deskripsi:
- masang toast
- ganti tag Text

No Issues
This commit is contained in:
2025-07-29 11:41:03 +08:00
parent db98c3afc5
commit 42bf1589b4
86 changed files with 379 additions and 307 deletions

View File

@@ -9,6 +9,7 @@ import MenuItemRow from "@/components/menuItemRow";
import ModalSelect from "@/components/modalSelect";
import SectionListAddTask from "@/components/project/sectionListAddTask";
import SelectForm from "@/components/selectForm";
import Text from "@/components/Text";
import Styles from "@/constants/Styles";
import { apiCreateProject } from "@/lib/api";
import { setMemberChoose } from "@/lib/memberChoose";
@@ -22,10 +23,9 @@ import { useEffect, useState } from "react";
import {
SafeAreaView,
ScrollView,
Text,
ToastAndroid,
View,
View
} from "react-native";
import Toast from "react-native-toast-message";
import { useDispatch, useSelector } from "react-redux";
export default function CreateProject() {
@@ -120,10 +120,10 @@ export default function CreateProject() {
const response = await apiCreateProject(fd)
if (response.success) {
dispatch(setUpdateProject({ ...update, data: !update.data }))
ToastAndroid.show('Berhasil menambahkan data', ToastAndroid.SHORT)
Toast.show({ type: 'small', text1: 'Berhasil menambahkan data', })
handleBack()
} else {
ToastAndroid.show(response.message, ToastAndroid.SHORT)
Toast.show({ type: 'small', text1: response.message, })
}
} catch (error) {
console.error(error)
@@ -235,10 +235,7 @@ export default function CreateProject() {
setSelect(true);
setValSelect("member");
} else {
ToastAndroid.show(
"Pilih Lembaga Desa terlebih dahulu",
ToastAndroid.SHORT
);
Toast.show({ type: 'small', text1: "Pilih Lembaga Desa terlebih dahulu", })
}
} else {
validationForm('group', userLogin.idGroup, userLogin.group);