diff --git a/services/frontend/src/components/Tabs.tsx b/services/frontend/src/components/Tabs.tsx index 0b59706..e464a00 100644 --- a/services/frontend/src/components/Tabs.tsx +++ b/services/frontend/src/components/Tabs.tsx @@ -1,7 +1,10 @@ import { styled } from "@mui/joy"; import { FunctionComponent, ReactElement, ReactNode } from "react"; +import { TabContext } from "../contexts"; export interface ITabsProps { + value: string; + onChange: (newValue: string) => void; children: ReactNode; } @@ -30,11 +33,15 @@ const Nav = styled("nav")` const Tabs: FunctionComponent = ( props: ITabsProps ): ReactElement => { - const { children } = props; + const { children, value, onChange } = props; return ( - + ); };