11import { BrowserRouter , Routes , Route } from 'react-router-dom'
2+ import ErrorBoundary from '@/components/ErrorBoundary'
23import Layout from '@/components/Layout'
34import Home from '@/pages/Home'
45import Solutions from '@/pages/Solutions'
@@ -10,24 +11,28 @@ import IotBinSensors from '@/pages/IotBinSensors'
1011import MonitoringPlatform from '@/pages/MonitoringPlatform'
1112import AboutUs from '@/pages/AboutUs'
1213import Careers from '@/pages/Careers'
14+ import NotFound from '@/pages/NotFound'
1315
1416export default function App ( ) {
1517 return (
16- < BrowserRouter >
17- < Routes >
18- < Route path = "/" element = { < Layout /> } >
19- < Route index element = { < Home /> } />
20- < Route path = "solutions" element = { < Solutions /> } />
21- < Route path = "sectors" element = { < Sectors /> } />
22- < Route path = "contact" element = { < Contact /> } />
23- < Route path = "ussd-access" element = { < UssdAccess /> } />
24- < Route path = "mobile-application" element = { < MobileApplication /> } />
25- < Route path = "iot-bin-sensors" element = { < IotBinSensors /> } />
26- < Route path = "monitoring-platform" element = { < MonitoringPlatform /> } />
27- < Route path = "about" element = { < AboutUs /> } />
28- < Route path = "careers" element = { < Careers /> } />
29- </ Route >
30- </ Routes >
31- </ BrowserRouter >
18+ < ErrorBoundary >
19+ < BrowserRouter >
20+ < Routes >
21+ < Route path = "/" element = { < Layout /> } >
22+ < Route index element = { < Home /> } />
23+ < Route path = "solutions" element = { < Solutions /> } />
24+ < Route path = "sectors" element = { < Sectors /> } />
25+ < Route path = "contact" element = { < Contact /> } />
26+ < Route path = "ussd-access" element = { < UssdAccess /> } />
27+ < Route path = "mobile-application" element = { < MobileApplication /> } />
28+ < Route path = "iot-bin-sensors" element = { < IotBinSensors /> } />
29+ < Route path = "monitoring-platform" element = { < MonitoringPlatform /> } />
30+ < Route path = "about" element = { < AboutUs /> } />
31+ < Route path = "careers" element = { < Careers /> } />
32+ < Route path = "*" element = { < NotFound /> } />
33+ </ Route >
34+ </ Routes >
35+ </ BrowserRouter >
36+ </ ErrorBoundary >
3237 )
3338}
0 commit comments