diff --git a/src/Components/LoggedIn/Content/index.tsx b/src/Components/LoggedIn/Content/index.tsx index 8572ad3..7ac1ef3 100644 --- a/src/Components/LoggedIn/Content/index.tsx +++ b/src/Components/LoggedIn/Content/index.tsx @@ -1,9 +1,18 @@ import * as React from "react"; import { Box } from "@mui/material"; +import Users from "./Users"; +import Promocode from "./Promocode"; +import Support from "./Support"; import Tariffs from "./Tariffs"; -const Content: React.FC = () => { +export interface MWProps { + section: number +} + +const Content: React.FC = ({ section }) => { + const componentsArray = [ , , , ]; + return ( { overflowY: "auto", padding: "60px" }}> - + + { componentsArray[ section ] } ); diff --git a/src/Components/LoggedIn/index.tsx b/src/Components/LoggedIn/index.tsx index 0681f03..e8c1e7d 100644 --- a/src/Components/LoggedIn/index.tsx +++ b/src/Components/LoggedIn/index.tsx @@ -11,8 +11,11 @@ import theme from "../../theme"; import { useMatch } from "react-router-dom"; -const LoggedIn: React.FC = () => { +export interface MWProps { + section: number +} +const LoggedIn: React.FC = ({ section }) => { return ( @@ -38,7 +41,7 @@ const LoggedIn: React.FC = () => { alignItems: "center" }}>
- + diff --git a/src/index.tsx b/src/index.tsx index daa1079..bee00d6 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -15,10 +15,14 @@ root.render( } /> } /> - } /> - } /> - } /> + } /> + } /> + } /> + } /> + + } /> + } /> }