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

@@ -7,6 +7,7 @@ import { InputForm } from "@/components/inputForm";
import InputSearch from "@/components/inputSearch";
import MenuItemRow from "@/components/menuItemRow";
import SkeletonTwoItem from "@/components/skeletonTwoItem";
import Text from "@/components/Text";
import { ColorsStatus } from "@/constants/ColorsStatus";
import Styles from "@/constants/Styles";
import { apiDeleteGroup, apiEditGroup, apiGetGroup } from "@/lib/api";
@@ -14,7 +15,8 @@ import { setUpdateGroup } from "@/lib/groupSlice";
import { useAuthSession } from "@/providers/AuthProvider";
import { AntDesign, Feather, MaterialCommunityIcons } from "@expo/vector-icons";
import { useEffect, useState } from "react";
import { RefreshControl, SafeAreaView, ScrollView, Text, ToastAndroid, View } from "react-native";
import { RefreshControl, SafeAreaView, ScrollView, View } from "react-native";
import Toast from "react-native-toast-message";
import { useDispatch, useSelector } from "react-redux";
type Props = {
@@ -60,7 +62,7 @@ export default function Index() {
} finally {
setVisibleEdit(false)
setModal(false)
ToastAndroid.show('Berhasil mengupdate data', ToastAndroid.SHORT)
Toast.show({ type: 'small', text1: 'Berhasil mengupdate data', })
}
}
@@ -74,7 +76,7 @@ export default function Index() {
console.error(error)
} finally {
setModal(false)
ToastAndroid.show('Berhasil mengupdate data', ToastAndroid.SHORT)
Toast.show({ type: 'small', text1: 'Berhasil mengupdate data', })
}
}