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

@@ -5,7 +5,8 @@ import { useAuthSession } from "@/providers/AuthProvider"
import { AntDesign, Ionicons, MaterialCommunityIcons, MaterialIcons } from "@expo/vector-icons"
import { router } from "expo-router"
import { useState } from "react"
import { ToastAndroid, View } from "react-native"
import { View } from "react-native"
import Toast from "react-native-toast-message"
import { useDispatch, useSelector } from "react-redux"
import AlertKonfirmasi from "../alertKonfirmasi"
import ButtonMenuHeader from "../buttonMenuHeader"
@@ -30,10 +31,10 @@ export default function HeaderRightProjectDetail({ id, status }: Props) {
const response = await apiDeleteProject({ user: hasil }, String(id))
if (response.success) {
dispatch(setUpdateProject({ ...update, data: !update.data }))
ToastAndroid.show('Berhasil menghapus kegiatan', ToastAndroid.SHORT)
Toast.show({ type: 'small', text1: 'Berhasil menghapus kegiatan', })
router.back()
} else {
ToastAndroid.show('Gagal menghapus kegiatan', ToastAndroid.SHORT)
Toast.show({ type: 'small', text1: 'Gagal menghapus kegiatan', })
}
} catch (error) {
console.error(error)