dry-wash-pl/src/components/LayoutArm/LayoutArm.tsx

24 lines
623 B
TypeScript
Raw Normal View History

import { Box, Flex } from '@chakra-ui/react';
import Sidebar from '../Sidebar';
import Orders from '../Orders';
import Masters from '../Masters';
import React from 'react';
2024-11-09 19:34:12 +03:00
import { Navigate, Route, Routes } from 'react-router-dom';
2024-11-09 19:34:12 +03:00
const LayoutArm = () => (
<Flex h='100vh'>
2024-11-09 19:34:12 +03:00
<Sidebar />
<Box flex='1' bg='gray.50'>
2024-11-09 19:34:12 +03:00
<Routes>
<Route>
<Route index element={<Navigate to='orders' replace />} />
<Route path='orders' element={<Orders />} />
<Route path='masters' element={<Masters />} />
</Route>
</Routes>
</Box>
</Flex>
);
export default LayoutArm;