bug fixed
This commit is contained in:
parent
a136e2415f
commit
e1280c4568
@ -131,9 +131,14 @@ const AdminHeader = () => {
|
||||
{userName?.slice(0, 1)?.toUpperCase() || 'U'}
|
||||
</button>
|
||||
{profileOpen && (
|
||||
<div className="absolute right-0 mt-3 w-64 rounded-[12px] border border-[#E5E7EB] bg-white shadow-[0_20px_30px_rgba(15,23,42,0.12)] z-50 text-center">
|
||||
<div className="px-4 py-3 border-b border-[#F1F5F9]">
|
||||
<p className="text-sm font-semibold text-[#232528] truncate" title={userName}>{userName}</p>
|
||||
<div className="absolute right-0 mt-3 w-64 rounded-[12px] border border-[#E5E7EB] bg-white shadow-[0_20px_30px_rgba(15,23,42,0.12)] z-50">
|
||||
<div className="px-4 py-3 border-b border-[#F1F5F9] text-left space-y-1">
|
||||
<p
|
||||
className="text-sm font-semibold text-[#232528] truncate"
|
||||
title={userName}
|
||||
>
|
||||
{userName?.replace(/([a-z])([A-Z])/g, '$1 $2')}
|
||||
</p>
|
||||
<p className="text-xs text-[#6B7280] truncate" title={userEmail}>{userEmail}</p>
|
||||
</div>
|
||||
{/* <button
|
||||
@ -148,7 +153,7 @@ const AdminHeader = () => {
|
||||
</button> */}
|
||||
<button
|
||||
type="button"
|
||||
className="w-full px-4 py-2.5 text-center text-sm text-[#232528] hover:bg-[#F2ECCF]"
|
||||
className="w-full px-4 py-2.5 text-left text-sm text-[#232528] hover:bg-[#F2ECCF]"
|
||||
onClick={() => {
|
||||
setProfileOpen(false);
|
||||
navigate('/reset-password');
|
||||
@ -158,7 +163,7 @@ const AdminHeader = () => {
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="w-full px-4 py-2.5 text-center text-sm text-[#B52520] hover:bg-[#FEE2E2]"
|
||||
className="w-full px-4 py-2.5 text-left text-sm text-[#B52520] hover:bg-[#FEE2E2]"
|
||||
onClick={handleLogout}
|
||||
>
|
||||
Logout
|
||||
|
||||
Loading…
Reference in New Issue
Block a user