This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user