Deskripsi: - list task divisi - create task divisi - detail task divisi - tambah tugas task divisi - tambah file tasi divisi - edit task divisi - pembatalan task divisi No Issues
44 lines
1.7 KiB
TypeScript
44 lines
1.7 KiB
TypeScript
import AlertKonfirmasi from "@/components/alertKonfirmasi";
|
|
import ButtonBackHeader from "@/components/buttonBackHeader";
|
|
import { ButtonForm } from "@/components/buttonForm";
|
|
import ButtonSelect from "@/components/buttonSelect";
|
|
import { InputForm } from "@/components/inputForm";
|
|
import Styles from "@/constants/Styles";
|
|
import { router, Stack, useLocalSearchParams } from "expo-router";
|
|
import { SafeAreaView, ScrollView, ToastAndroid, View } from "react-native";
|
|
|
|
export default function CreateTaskDivision() {
|
|
const { id } = useLocalSearchParams()
|
|
|
|
return (
|
|
<SafeAreaView>
|
|
<Stack.Screen
|
|
options={{
|
|
headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
|
headerTitle: `Tambah Tugas`,
|
|
headerTitleAlign: 'center',
|
|
}}
|
|
/>
|
|
<ScrollView>
|
|
<View style={[Styles.p15, Styles.mb100]}>
|
|
<InputForm label="Judul Tugas" type="default" placeholder="Judul Tugas" 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('../task?status=0')
|
|
}
|
|
})
|
|
}} />
|
|
</View>
|
|
</ScrollView>
|
|
</SafeAreaView>
|
|
)
|
|
} |