Thực hiện tạo page Sprint Review
This commit is contained in:
parent
e4745f1636
commit
669c6c1ef3
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue