Deskripsi: - update button save pada tambah edit project - ui edit tugas dan tanggal project - modal menu detail tugas dan tanggal - modal menu detail file - modal menu detail anggota project No Issues
50 lines
2.2 KiB
TypeScript
50 lines
2.2 KiB
TypeScript
import ButtonBackHeader from "@/components/buttonBackHeader";
|
|
import ButtonSaveHeader from "@/components/buttonSaveHeader";
|
|
import ButtonSelect from "@/components/buttonSelect";
|
|
import { InputForm } from "@/components/inputForm";
|
|
import SelectForm from "@/components/selectForm";
|
|
import Styles from "@/constants/Styles";
|
|
import { router, Stack } from "expo-router";
|
|
import { useState } from "react";
|
|
import { SafeAreaView, ScrollView, ToastAndroid, View } from "react-native";
|
|
|
|
export default function CreateProject() {
|
|
const [chooseGroup, setChooseGroup] = useState({ val: '', label: '' })
|
|
|
|
return (
|
|
<SafeAreaView>
|
|
<Stack.Screen
|
|
options={{
|
|
headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
headerTitle: 'Tambah Kegiatan',
|
|
headerTitleAlign: 'center',
|
|
headerRight: () => <ButtonSaveHeader category="create" onPress={() => {
|
|
ToastAndroid.show('Berhasil menambah data', ToastAndroid.SHORT)
|
|
router.push('/project?status=0')
|
|
}} />
|
|
}}
|
|
/>
|
|
<ScrollView>
|
|
<View style={[Styles.p15, Styles.mb100]}>
|
|
<SelectForm label="Lembaga Desa" placeholder="Pilih Lembaga Desa" value={chooseGroup.label} required onPress={() => { }} />
|
|
<InputForm label="Kegiatan" type="default" placeholder="Nama Kegiatan" required />
|
|
<ButtonSelect value="Tambah Tanggal & Tugas" />
|
|
<ButtonSelect value="Upload File" />
|
|
<ButtonSelect value="Tambah Anggota" />
|
|
{/* <ButtonForm
|
|
text="SIMPAN"
|
|
onPress={() => {
|
|
AlertKonfirmasi({
|
|
title: 'Konfirmasi',
|
|
desc: 'Apakah anda yakin ingin menambahkan data?',
|
|
onPress: () => {
|
|
ToastAndroid.show('Berhasil menambahkan data', ToastAndroid.SHORT)
|
|
router.push('/project?status=0')
|
|
}
|
|
})
|
|
}} /> */}
|
|
</View>
|
|
</ScrollView>
|
|
</SafeAreaView>
|
|
)
|
|
} |