Commit c381d01f authored by BangNSK's avatar BangNSK

feat: implement user management module with CRUD operations and update configuration files

parent 0c058896
This diff is collapsed.
......@@ -59,7 +59,7 @@ export const Logs: React.FC = () => {
},
});
if (res.data.success) {
setLogs(res.data.data.logs || []);
setLogs(res.data.data.items || res.data.data.logs || []);
setMeta(res.data.data.meta);
setLoadError('');
}
......
......@@ -83,7 +83,7 @@ export const Users: React.FC = () => {
params: { page, limit: 10, search: searchQuery || undefined },
});
if (res.data.success) {
setUsers(res.data.data.users || []);
setUsers(res.data.data.items || res.data.data.users || []);
setMeta(res.data.data.meta);
setLoadError('');
}
......
/// <reference types="vite/client" />
......@@ -4,7 +4,6 @@
"target": "es2023",
"lib": ["ES2023", "DOM"],
"module": "esnext",
"types": ["vite/client"],
"allowArbitraryExtensions": true,
"skipLibCheck": true,
......@@ -20,7 +19,10 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true
"noFallthroughCasesInSwitch": true,
/* Types */
"types": ["vite/client"]
},
"include": ["src"]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment