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

@@ -1,6 +1,7 @@
import BorderBottomItem from "@/components/borderBottomItem";
import ButtonBackHeader from "@/components/buttonBackHeader";
import InputSearch from "@/components/inputSearch";
import Text from '@/components/Text';
import { ColorsStatus } from "@/constants/ColorsStatus";
import Styles from "@/constants/Styles";
import { apiGetSearch } from "@/lib/api";
@@ -8,8 +9,8 @@ import { useAuthSession } from "@/providers/AuthProvider";
import { AntDesign, MaterialIcons } from "@expo/vector-icons";
import { router, Stack } from "expo-router";
import { useState } from "react";
import { FlatList, Image, SafeAreaView, ToastAndroid, View } from "react-native";
import Text from '@/components/Text';
import { FlatList, Image, SafeAreaView, View } from "react-native";
import Toast from "react-native-toast-message";
type PropsUser = {
id: string
@@ -49,7 +50,7 @@ export default function Search() {
setDataDivisi(hasil.data.division)
setDataProject(hasil.data.project)
} else {
return ToastAndroid.show(hasil.message, ToastAndroid.SHORT)
return Toast.show({ type: 'small', text1: hasil.message, })
}
} else {
setDataUser([])
@@ -58,7 +59,7 @@ export default function Search() {
}
} catch (error) {
console.error(error)
return ToastAndroid.show('Gagal melakukan pencarian', ToastAndroid.SHORT)
return Toast.show({ type: 'small', text1: 'Gagal melakukan pencarian', })
}
}