🚀 Final: Fix stats, staff list, settings profile, and logout redirect
This commit is contained in:
@@ -40,7 +40,7 @@ export const StaffPage = () => {
|
||||
e.preventDefault();
|
||||
try {
|
||||
await apiClient.post('/users', {
|
||||
full_name: fullName,
|
||||
name: fullName,
|
||||
email,
|
||||
password,
|
||||
role
|
||||
@@ -108,7 +108,7 @@ export const StaffPage = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 className="text-xl font-bold text-slate-900 mb-1">{member.full_name}</h3>
|
||||
<h3 className="text-xl font-bold text-slate-900 mb-1">{member.name}</h3>
|
||||
<div className="flex items-center gap-2 mb-6">
|
||||
<span className={`text-[10px] font-black uppercase tracking-widest px-2 py-0.5 rounded-md ${
|
||||
member.role === 'admin' ? 'bg-indigo-50 text-indigo-600' : 'bg-slate-50 text-slate-600'
|
||||
|
||||
Reference in New Issue
Block a user