upd: project

Deskripsi;
- hapus detail project task
- edit detail project task
- fix tambah detail project task

No Issues
This commit is contained in:
amel
2025-05-13 11:52:43 +08:00
parent a9368e3e32
commit f7fac510ec
4 changed files with 174 additions and 43 deletions

View File

@@ -68,7 +68,7 @@ export default function ProjectAddTask() {
async function handleCreate() {
try {
const hasil = await decryptToken(String(token?.current));
const response = await apiCreateProjectTask({ data: { name: title, dateStart: new Date(from), dateEnd: new Date(to), user: hasil }, id });
const response = await apiCreateProjectTask({ data: { name: title, dateStart: dayjs(range.startDate).format("YYYY-MM-DD"), dateEnd: dayjs(range.endDate).format("YYYY-MM-DD"), user: hasil }, id });
if (response.success) {
dispatch(setUpdateProject({ ...update, task: !update.task, progress: !update.progress }))
ToastAndroid.show("Berhasil menambah data", ToastAndroid.SHORT);