Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/components/Layout.jsx
Browse files
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="
|
| 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
|