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 = () => { ...@@ -59,7 +59,7 @@ export const Logs: React.FC = () => {
}, },
}); });
if (res.data.success) { if (res.data.success) {
setLogs(res.data.data.logs || []); setLogs(res.data.data.items || res.data.data.logs || []);
setMeta(res.data.data.meta); setMeta(res.data.data.meta);
setLoadError(''); setLoadError('');
} }
......
...@@ -83,7 +83,7 @@ export const Users: React.FC = () => { ...@@ -83,7 +83,7 @@ export const Users: React.FC = () => {
params: { page, limit: 10, search: searchQuery || undefined }, params: { page, limit: 10, search: searchQuery || undefined },
}); });
if (res.data.success) { if (res.data.success) {
setUsers(res.data.data.users || []); setUsers(res.data.data.items || res.data.data.users || []);
setMeta(res.data.data.meta); setMeta(res.data.data.meta);
setLoadError(''); setLoadError('');
} }
......
/// <reference types="vite/client" />
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
"target": "es2023", "target": "es2023",
"lib": ["ES2023", "DOM"], "lib": ["ES2023", "DOM"],
"module": "esnext", "module": "esnext",
"types": ["vite/client"],
"allowArbitraryExtensions": true, "allowArbitraryExtensions": true,
"skipLibCheck": true, "skipLibCheck": true,
...@@ -20,7 +19,10 @@ ...@@ -20,7 +19,10 @@
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"erasableSyntaxOnly": true, "erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true "noFallthroughCasesInSwitch": true,
/* Types */
"types": ["vite/client"]
}, },
"include": ["src"] "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