upd: project

Deskripsi:
- ui detail project
- ui create project
- ui edit tambah tugas
- ui edit tambah file
- ui edit judul project
- ui cancel project

No Issues
This commit is contained in:
amel
2025-03-06 15:13:43 +08:00
parent 8806f33a8d
commit c07be165ec
15 changed files with 371 additions and 17 deletions

View File

@@ -5,6 +5,7 @@ import { View } from "react-native"
import Styles from "@/constants/Styles"
import MenuItemRow from "../menuItemRow"
import { AntDesign, MaterialCommunityIcons, MaterialIcons } from "@expo/vector-icons"
import { router } from "expo-router"
type Props = {
id: string | string[]
@@ -22,14 +23,16 @@ export default function HeaderRightProjectDetail({ id }: Props) {
icon={<AntDesign name="pluscircle" color="black" size={25} />}
title="Tambah Tugas"
onPress={() => {
setVisible(false)
router.push(`/project/${id}/add-task`)
}}
/>
<MenuItemRow
icon={<MaterialCommunityIcons name="file-plus" color="black" size={25} />}
title="Tambah File"
onPress={() => {
setVisible(false)
router.push(`/project/${id}/add-file`)
}}
/>
@@ -37,8 +40,8 @@ export default function HeaderRightProjectDetail({ id }: Props) {
icon={<MaterialIcons name="groups" color="black" size={25} />}
title="Tambah Anggota"
onPress={() => {
setVisible(false)
// router.push(`/discussion/member/${id}`)
// setVisible(false)
}}
/>
@@ -49,14 +52,15 @@ export default function HeaderRightProjectDetail({ id }: Props) {
title="Edit"
onPress={() => {
setVisible(false)
// router.push(`/discussion/edit/${id}`)
router.push(`/project/${id}/edit`)
}}
/>
<MenuItemRow
icon={<MaterialIcons name="close" color="black" size={25} />}
title="Batal"
onPress={() => {
setVisible(false)
router.push(`/project/${id}/cancel`)
}}
/>
</View>