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

@@ -2,8 +2,9 @@ import { ColorsStatus } from "@/constants/ColorsStatus";
import Styles from "@/constants/Styles";
import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons";
import { useState } from "react";
import { Pressable, ScrollView, Text, ToastAndroid, View } from "react-native";
import { Pressable, ScrollView, View } from "react-native";
import { useSharedValue } from "react-native-reanimated";
import Toast from "react-native-toast-message";
import AlertKonfirmasi from "../alertKonfirmasi";
import DrawerBottom from "../drawerBottom";
import { InputForm } from "../inputForm";
@@ -13,6 +14,7 @@ import MenuItemRow from "../menuItemRow";
import ModalFloat from "../modalFloat";
import ModalSelectMultiple from "../modalSelectMultiple";
import ModalSalinMove from "./modalSalinMove";
import Text from "../Text";
type Props = {
@@ -60,7 +62,7 @@ export default function MenuBottomSelectDocument({ onDone }: Props) {
onPress: () => {
onDone()
ToastAndroid.show('Berhasil menghapus data', ToastAndroid.SHORT)
Toast.show({ type: 'small', text1: 'Berhasil menghapus data', })
}
})
}}
@@ -94,7 +96,7 @@ export default function MenuBottomSelectDocument({ onDone }: Props) {
<ModalFloat title="Ganti Nama Dokumen" isVisible={isRename} setVisible={setRename}
onSubmit={() => {
onDone()
ToastAndroid.show('Berhasil mengganti nama dokumen', ToastAndroid.SHORT)
Toast.show({ type: 'small', text1: 'Berhasil mengganti nama dokumen', })
}}>
<View>
<InputForm type="default" placeholder="Nama File" required label="Nama File" />
@@ -204,7 +206,7 @@ export default function MenuBottomSelectDocument({ onDone }: Props) {
<ModalSelectMultiple choose="dinas" title="Bagikan" category="share-division" open={isShare} close={setShare}
onSelect={() => {
ToastAndroid.show('Success', ToastAndroid.SHORT)
Toast.show({ type: 'small', text1: 'Success', })
setShare(false)
}}
/>