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 { post } from '@/rtk/helpers/apiService'
import { update, Xdelete } from '@/rtk/helpers/CRUD'
import { update } from '@/rtk/helpers/CRUD'
import { TUser } from '@/variables/types'
import {
Box,
@ -119,17 +119,17 @@ const SprintReview = () => {
}
}
const handleDelete = async (id: number) => {
try {
await Xdelete(
deleteUser,
{ id: id },
// , getAll
)
} catch (error) {
console.log(error)
}
}
// const handleDelete = async (id: number) => {
// try {
// await Xdelete(
// deleteUser,
// { id: id },
// // , getAll
// )
// } catch (error) {
// console.log(error)
// }
// }
useEffect(() => {
// getAll()