RustamRu 855ec2f138
All checks were successful
it-academy/dry-wash-pl/pipeline/head This commit looks good
feat: update eslint import order rule
2024-11-17 13:43:41 +03:00

25 lines
624 B
TypeScript

import { Box, Flex } from '@chakra-ui/react';
import React from 'react';
import { Navigate, Route, Routes } from 'react-router-dom';
import Sidebar from '../Sidebar';
import Orders from '../Orders';
import Masters from '../Masters';
const LayoutArm = () => (
<Flex h='100vh'>
<Sidebar />
<Box flex='1' bg='gray.50'>
<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;