larxius commited on
Commit
296b083
·
verified ·
1 Parent(s): 6ed7332

Update frontend/src/components/Layout.jsx

Browse files
Files changed (1) hide show
  1. frontend/src/components/Layout.jsx +3 -3
frontend/src/components/Layout.jsx CHANGED
@@ -545,13 +545,13 @@ export const Layout = ({ children }) => {
545
  <div className="flex items-center gap-sm">
546
  <span className="material-symbols-outlined text-[20px]">vpn_key</span>
547
  <span className="font-bold text-[14px]">Impersonation Mode Active</span>
548
- <span className="hidden md:inline text-[13px] opacity-90 border-l border-white/30 pl-sm ml-sm">
549
- You are currently viewing data for <strong>{organizations.find(o => o.id === user?.org_id)?.name || 'this organization'}</strong>.
550
  </span>
551
  </div>
552
  <button
553
  onClick={handleReturnToAdmin}
554
- className="bg-white text-primary hover:bg-surface-container transition-colors px-3 py-1.5 rounded-md font-bold text-[12px] border-0 cursor-pointer shadow-sm flex items-center gap-xs"
555
  >
556
  <span className="material-symbols-outlined text-[16px]">exit_to_app</span>
557
  Return
 
545
  <div className="flex items-center gap-sm">
546
  <span className="material-symbols-outlined text-[20px]">vpn_key</span>
547
  <span className="font-bold text-[14px]">Impersonation Mode Active</span>
548
+ <span className="text-[13px] opacity-90 border-l border-white/30 pl-sm ml-sm">
549
+ You are currently viewing data for <strong>{user?.org_name || organizations.find(o => String(o.id) === String(user?.org_id))?.name || 'this organization'}</strong>.
550
  </span>
551
  </div>
552
  <button
553
  onClick={handleReturnToAdmin}
554
+ className="bg-white text-primary hover:bg-surface-container transition-colors px-3 py-1.5 rounded-md font-bold text-[12px] border-0 cursor-pointer shadow-sm flex items-center gap-xs shrink-0"
555
  >
556
  <span className="material-symbols-outlined text-[16px]">exit_to_app</span>
557
  Return