diff --git a/src/components/LayoutArm/LayoutArm.tsx b/src/components/LayoutArm/LayoutArm.tsx index db48c23..da99da0 100644 --- a/src/components/LayoutArm/LayoutArm.tsx +++ b/src/components/LayoutArm/LayoutArm.tsx @@ -3,13 +3,19 @@ import Sidebar from '../Sidebar'; import Orders from '../Orders'; import Masters from '../Masters'; import React from 'react'; +import { Navigate, Route, Routes } from 'react-router-dom'; -const LayoutArm = ({ currentPage, onSelectPage }) => ( +const LayoutArm = () => ( - + - {currentPage === 'orders' && } - {currentPage === 'masters' && } + + + } /> + } /> + } /> + + ); diff --git a/src/components/Sidebar/Sidebar.tsx b/src/components/Sidebar/Sidebar.tsx index 86f64f5..4ae207a 100644 --- a/src/components/Sidebar/Sidebar.tsx +++ b/src/components/Sidebar/Sidebar.tsx @@ -2,7 +2,9 @@ import { Box, Button, Heading, VStack } from '@chakra-ui/react'; import React from 'react'; import { Divider } from '@chakra-ui/react'; import i18next from 'i18next'; -const Sidebar = ({ onSelectPage }) => ( +import { Link } from 'react-router-dom'; + +const Sidebar = () => ( (