Thực hiện tạo page Sprint Review

This commit is contained in:
Truong Vo 2024-09-13 01:40:31 +07:00
parent e4745f1636
commit 669c6c1ef3
1 changed files with 13 additions and 13 deletions

View File

@ -1,7 +1,7 @@
import { createOrUpdateUser, deleteUser } from '@/api/Admin' import { createOrUpdateUser } from '@/api/Admin'
import { ButtonCopy } from '@/components/CopyClipboard/CopyClipboard' import { ButtonCopy } from '@/components/CopyClipboard/CopyClipboard'
import { post } from '@/rtk/helpers/apiService' import { post } from '@/rtk/helpers/apiService'
import { update, Xdelete } from '@/rtk/helpers/CRUD' import { update } from '@/rtk/helpers/CRUD'
import { TUser } from '@/variables/types' import { TUser } from '@/variables/types'
import { import {
Box, Box,
@ -119,17 +119,17 @@ const SprintReview = () => {
} }
} }
const handleDelete = async (id: number) => { // const handleDelete = async (id: number) => {
try { // try {
await Xdelete( // await Xdelete(
deleteUser, // deleteUser,
{ id: id }, // { id: id },
// , getAll // // , getAll
) // )
} catch (error) { // } catch (error) {
console.log(error) // console.log(error)
} // }
} // }
useEffect(() => { useEffect(() => {
// getAll() // getAll()