upd: task division
Deskripsi: - update button save button pada tambah edit tugas divisi - update button save pada tambah file, tambah task, cancel tugas divisi - ui tambah task tugas tanggal divisi No Issues
This commit is contained in:
@@ -3,13 +3,17 @@ import { Ionicons, MaterialCommunityIcons } from "@expo/vector-icons";
|
||||
import { router } from "expo-router";
|
||||
import { useState } from "react";
|
||||
import { Text, ToastAndroid, View } from "react-native";
|
||||
import AlertKonfirmasi from "./alertKonfirmasi";
|
||||
import DrawerBottom from "./drawerBottom";
|
||||
import ItemSectionTanggalTugas from "./itemSectionTanggalTugas";
|
||||
import MenuItemRow from "./menuItemRow";
|
||||
import AlertKonfirmasi from "./alertKonfirmasi";
|
||||
import ModalSelect from "./modalSelect";
|
||||
|
||||
export default function SectionTanggalTugas() {
|
||||
type Props = {
|
||||
category: 'project' | 'task'
|
||||
}
|
||||
|
||||
export default function SectionTanggalTugas({ category }: Props) {
|
||||
const [isModal, setModal] = useState(false)
|
||||
const [isSelect, setSelect] = useState(false)
|
||||
const [choose, setChoose] = useState({ val: '', label: '' })
|
||||
@@ -39,7 +43,9 @@ export default function SectionTanggalTugas() {
|
||||
title="Edit Tugas"
|
||||
onPress={() => {
|
||||
setModal(false)
|
||||
router.push(`/project/update/124`)
|
||||
category == 'project'
|
||||
? router.push(`/project/update/124`)
|
||||
: router.push(`./update/124`)
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -53,7 +59,6 @@ export default function SectionTanggalTugas() {
|
||||
onPress: () => {
|
||||
setModal(false)
|
||||
ToastAndroid.show('Berhasil menghapus data', ToastAndroid.SHORT)
|
||||
router.push('/project/243')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user