2024-11-10 02:45:54 +03:00
|
|
|
import React, { lazy, Suspense } from 'react';
|
2024-11-03 11:44:23 +03:00
|
|
|
import { Routes, Route } from 'react-router-dom';
|
2024-11-10 02:45:54 +03:00
|
|
|
import { PageSpinner } from './components';
|
2024-11-03 11:44:23 +03:00
|
|
|
import Arm from './pages/arm';
|
2024-11-10 02:45:54 +03:00
|
|
|
|
|
|
|
const Landing = lazy(() => import('./pages/landing'));
|
|
|
|
const OrderForm = lazy(() => import('./pages/order-form'));
|
|
|
|
const OrderView = lazy(() => import('./pages/order-view'));
|
2024-10-27 16:07:03 +03:00
|
|
|
|
|
|
|
const Routers = () => {
|
|
|
|
return (
|
2024-11-10 02:45:54 +03:00
|
|
|
<Suspense fallback={<PageSpinner />}>
|
|
|
|
<Routes>
|
|
|
|
<Route path='/dry-wash'>
|
|
|
|
<Route index element={<Landing />} />
|
|
|
|
<Route path='order-form' element={<OrderForm />} />
|
|
|
|
<Route path='order-view' element={<OrderView />} />
|
|
|
|
</Route>
|
|
|
|
<Route path='/dry-wash/arm' element={<Arm />}></Route>
|
|
|
|
</Routes>
|
|
|
|
</Suspense>
|
2024-10-27 16:07:03 +03:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Routers;
|