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:
@@ -14,7 +14,7 @@ export default function TaskDivisionCancel() {
|
||||
const { id, detail } = useLocalSearchParams<{ id: string; detail: string }>();
|
||||
const { token, decryptToken } = useAuthSession();
|
||||
const dispatch = useDispatch();
|
||||
const update = useSelector((state: any) => state.projectUpdate);
|
||||
const update = useSelector((state: any) => state.taskUpdate);
|
||||
const [reason, setReason] = useState("");
|
||||
const [error, setError] = useState(false);
|
||||
const [disable, setDisable] = useState(false);
|
||||
|
||||
@@ -50,7 +50,6 @@ export default function DetailTaskDivision() {
|
||||
handleLoad()
|
||||
}, [update.progress, update.data])
|
||||
|
||||
|
||||
return (
|
||||
<SafeAreaView>
|
||||
<Stack.Screen
|
||||
@@ -58,7 +57,7 @@ export default function DetailTaskDivision() {
|
||||
headerLeft: () => <ButtonBackHeader onPress={() => { router.back() }} />,
|
||||
headerTitle: loading ? 'Loading...' : data?.title,
|
||||
headerTitleAlign: 'center',
|
||||
headerRight: () => <HeaderRightTaskDetail id={detail} />,
|
||||
headerRight: () => <HeaderRightTaskDetail id={detail} division={id} status={data?.status}/>,
|
||||
}}
|
||||
/>
|
||||
<ScrollView>
|
||||
|
||||
Reference in New Issue
Block a user