Skip to content

Commit 3273bc0

Browse files
committed
clean code
1 parent 69b5bf5 commit 3273bc0

3 files changed

Lines changed: 5 additions & 55 deletions

File tree

src/app/(pages)/liveData/page.tsx

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/app/clientWrapper.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ const pages = {
1010
'/dashboard': 'Dashboard',
1111
'/profile': 'Profile',
1212
'/chat': 'Chat',
13-
'/settings': 'Settings'
13+
'/settings': 'Settings',
14+
'/management': 'Management',
15+
'/alerts': 'Alerts',
1416
};
1517

1618
export default function ClientWrapper({ children }: { children: React.ReactNode }) {
1719
const [load, setLoad] = useState<boolean>(false);
1820
const currentPath = usePathname();
19-
const pageTitle = pages[currentPath as keyof typeof pages] || 'SSLM Dashboard';
21+
const pageTitle = pages[currentPath as keyof typeof pages] || 'SSLM Application';
2022
const { showInnerComponent, setShowInnerComponent } = useShowInnerComponent();
2123

2224
useEffect(() => {

src/app/components/Sidebar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default function Sidebar(props: SidebarInterface) {
6868
position: 'top-left',
6969
duration: 5000,
7070
style: {
71-
background: '#dc2626', // Red background for danger alert
71+
background: '#dc2626',
7272
color: '#ffffff',
7373
},
7474
}

0 commit comments

Comments
 (0)