fix
All checks were successful
Build And Deploy Main / build-and-deploy (push) Successful in 38s

This commit is contained in:
2026-03-16 16:30:17 -04:00
parent 1500254db7
commit d7ddbbbb70
6 changed files with 208 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
import { Bell, ChevronDown, PersonCircle } from 'react-bootstrap-icons';
import { Outlet, useLocation, Navigate } from 'react-router-dom';
import { AuthService } from '../../services';
import { getHrTitleDisplayName } from '../../shared';
import SideMenu from './menu';
import { Dropdown } from "react-bootstrap";
@@ -9,7 +10,7 @@ function Layout() {
const showMenu = location.pathname !== '/login' && location.pathname !== '/landing'; // Example: Hide menu on login page
const userRaw = localStorage.getItem('user');
const user = userRaw ? JSON.parse(userRaw) : null;
const displayTitle = (user?.title || user?.roles?.[0] || '').toString();
const displayTitle = getHrTitleDisplayName((user?.title || user?.roles?.[0] || '').toString());
const getLogoSuffix = () => {
return (window.location.hostname.includes('worldshine2.mayo.llc') || window.location.hostname.includes('site2') || window.location.host.includes('ws2') ||window.location.hostname.includes('localhost')) ? "Care LLC" : ((window.location.hostname.includes('worldshine3.mayo.llc') ||window.location.hostname.includes('site3') || window.location.hostname.includes('ws3')) ? "Cloverleaf LLC" : "International LLC");
}