upd: task division

Deskripsi:
- tambah task division
- hapus task division yg telah dibatalkan
- akses user sesuai dengan role

No Issuese
This commit is contained in:
amel
2025-05-27 12:20:47 +08:00
parent bc74be122d
commit 42f6257d03
9 changed files with 672 additions and 64 deletions

View File

@@ -16,6 +16,7 @@ import {
import { router, useLocalSearchParams } from "expo-router";
import { useEffect, useState } from "react";
import { Pressable, SafeAreaView, ScrollView, Text, View } from "react-native";
import { useSelector } from "react-redux";
type Props = {
id: string;
@@ -32,6 +33,7 @@ export default function ListTask() {
const { token, decryptToken } = useAuthSession();
const [data, setData] = useState<Props[]>([]);
const [search, setSearch] = useState("");
const update = useSelector((state: any) => state.taskUpdate)
async function handleLoad() {
try {
@@ -50,7 +52,7 @@ export default function ListTask() {
useEffect(() => {
handleLoad();
}, [status, search]);
}, [status, search, update.data]);
return (
<SafeAreaView>