Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update frontend/src/components/Layout.jsx
Browse files
frontend/src/components/Layout.jsx
CHANGED
|
@@ -197,6 +197,13 @@ export const Layout = ({ children }) => {
|
|
| 197 |
|
| 198 |
if (user?.role === 'super_admin') {
|
| 199 |
navItems.push({ to: '/super-admin', label: 'Global Management', icon: 'admin_panel_settings' });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
}
|
| 201 |
|
| 202 |
return (
|
|
@@ -218,7 +225,10 @@ export const Layout = ({ children }) => {
|
|
| 218 |
</h1>
|
| 219 |
<p className="text-[12px] text-[#64748b] dark:text-slate-400 uppercase tracking-[0.14em] m-0 font-medium leading-tight mt-1">
|
| 220 |
{user?.role === 'super_admin' ? 'SUPER ADMIN' :
|
|
|
|
| 221 |
user?.role === 'support_engineer' ? 'SUPPORT ENGINEER' :
|
|
|
|
|
|
|
| 222 |
'ORG ADMIN'}
|
| 223 |
</p>
|
| 224 |
</div>
|
|
@@ -301,7 +311,10 @@ export const Layout = ({ children }) => {
|
|
| 301 |
</span>
|
| 302 |
<span className="text-[10px] text-[#64748b] dark:text-slate-400 uppercase tracking-[0.12em] font-medium leading-none mt-0.5">
|
| 303 |
{user?.role === 'super_admin' ? 'SUPER ADMIN' :
|
|
|
|
| 304 |
user?.role === 'support_engineer' ? 'SUPPORT ENGINEER' :
|
|
|
|
|
|
|
| 305 |
'ORG ADMIN'}
|
| 306 |
</span>
|
| 307 |
</div>
|
|
|
|
| 197 |
|
| 198 |
if (user?.role === 'super_admin') {
|
| 199 |
navItems.push({ to: '/super-admin', label: 'Global Management', icon: 'admin_panel_settings' });
|
| 200 |
+
navItems.push({ to: '/admin', label: 'Admin Panel', icon: 'manage_accounts' });
|
| 201 |
+
navItems.push({ to: '/super-admin/logs', label: 'Logs & Threats', icon: 'policy' });
|
| 202 |
+
} else if (user?.role === 'admin') {
|
| 203 |
+
navItems.push({ to: '/admin', label: 'Admin Panel', icon: 'manage_accounts' });
|
| 204 |
+
navItems.push({ to: '/super-admin/logs', label: 'Logs & Threats', icon: 'policy' });
|
| 205 |
+
} else if (user?.role === 'support_engineer') {
|
| 206 |
+
navItems.push({ to: '/super-admin/logs', label: 'Logs & Threats', icon: 'policy' });
|
| 207 |
}
|
| 208 |
|
| 209 |
return (
|
|
|
|
| 225 |
</h1>
|
| 226 |
<p className="text-[12px] text-[#64748b] dark:text-slate-400 uppercase tracking-[0.14em] m-0 font-medium leading-tight mt-1">
|
| 227 |
{user?.role === 'super_admin' ? 'SUPER ADMIN' :
|
| 228 |
+
user?.role === 'admin' ? 'ADMIN' :
|
| 229 |
user?.role === 'support_engineer' ? 'SUPPORT ENGINEER' :
|
| 230 |
+
user?.role === 'executive_user' ? 'EXECUTIVE USER' :
|
| 231 |
+
user?.role === 'soc_analyst' ? 'SOC ANALYST' :
|
| 232 |
'ORG ADMIN'}
|
| 233 |
</p>
|
| 234 |
</div>
|
|
|
|
| 311 |
</span>
|
| 312 |
<span className="text-[10px] text-[#64748b] dark:text-slate-400 uppercase tracking-[0.12em] font-medium leading-none mt-0.5">
|
| 313 |
{user?.role === 'super_admin' ? 'SUPER ADMIN' :
|
| 314 |
+
user?.role === 'admin' ? 'ADMIN' :
|
| 315 |
user?.role === 'support_engineer' ? 'SUPPORT ENGINEER' :
|
| 316 |
+
user?.role === 'executive_user' ? 'EXECUTIVE USER' :
|
| 317 |
+
user?.role === 'soc_analyst' ? 'SOC ANALYST' :
|
| 318 |
'ORG ADMIN'}
|
| 319 |
</span>
|
| 320 |
</div>
|