dry-wash-pl/src/routes.tsx

26 lines
791 B
TypeScript
Raw Normal View History

2024-11-10 02:45:54 +03:00
import React, { lazy, Suspense } from 'react';
import { Routes, Route } from 'react-router-dom';
2024-11-10 02:45:54 +03:00
import { PageSpinner } from './components';
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;