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

@@ -14,7 +14,8 @@ import { setMemberChoose } from "@/lib/memberChoose";
import { useAuthSession } from "@/providers/AuthProvider";
import { router, Stack } from "expo-router";
import { useEffect, useState } from "react";
import { SafeAreaView, ScrollView, ToastAndroid, View } from "react-native";
import { SafeAreaView, ScrollView, View } from "react-native";
import Toast from "react-native-toast-message";
import { useDispatch, useSelector } from "react-redux";
@@ -98,7 +99,7 @@ export default function CreateDiscussionGeneral() {
if (response.success) {
dispatch(setMemberChoose([]))
dispatch(setUpdateDiscussionGeneralDetail(!update))
ToastAndroid.show('Berhasil menambahkan data', ToastAndroid.SHORT)
Toast.show({ type: 'small', text1: 'Berhasil menambahkan data', })
router.back()
}
} catch (error) {
@@ -123,10 +124,7 @@ export default function CreateDiscussionGeneral() {
disable={disableBtn}
onPress={() => {
entitiesMember.length == 0
? ToastAndroid.show(
"Anda belum memilih anggota",
ToastAndroid.SHORT
)
? Toast.show({ type: 'small', text1: 'Anda belum memilih anggota', })
: handleCreate()
}}
/>
@@ -179,12 +177,9 @@ export default function CreateDiscussionGeneral() {
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{
} else {
validationForm('group', userLogin.idGroup, userLogin.group);
setValChoose(userLogin.idGroup)
setSelect(true);