update, consume for login done
This commit is contained in:
@ -11,6 +11,8 @@ const HeaderTopbar = () => {
|
||||
const itemUserRef = useRef<any>(null);
|
||||
const itemNotificationsRef = useRef<any>(null);
|
||||
|
||||
console.log('HeaderTopbar getAuth():', getAuth());
|
||||
|
||||
const { isRTL } = useLanguage();
|
||||
|
||||
const [isSticky, setIsSticky] = useState(false);
|
||||
@ -32,11 +34,11 @@ const HeaderTopbar = () => {
|
||||
<span
|
||||
className={`font-semibold text-lg leading-tight ${isSticky ? 'text-black' : 'text-white'}`}
|
||||
>
|
||||
{getAuth()?.user.name}
|
||||
{getAuth()?.user?.name}
|
||||
</span>
|
||||
<span className={`text-xs ${isSticky ? 'text-gray-700' : 'text-white'}`}>
|
||||
{getAuth()?.user?.email}
|
||||
</span>
|
||||
{/* <span className={`text-xs ${isSticky ? 'text-gray-700' : 'text-white'}`}>
|
||||
as {getAuth()?.role_name}
|
||||
</span> */}
|
||||
</div>
|
||||
|
||||
<Menu className="w-12 h-12">
|
||||
|
||||
Reference in New Issue
Block a user