update, consume for login done

This commit is contained in:
wayanrivan
2026-07-07 11:34:38 +07:00
parent 0ec6ef1841
commit 8a7dfc2c86
8 changed files with 59 additions and 139 deletions

View File

@ -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">