diff --git a/src/sections/Projects/Sistent/components/select/header.js b/src/sections/Projects/Sistent/components/select/header.js new file mode 100644 index 000000000000..84f3f0008946 --- /dev/null +++ b/src/sections/Projects/Sistent/components/select/header.js @@ -0,0 +1,13 @@ +import React from "react"; +export default function Header() { + return ( + <> + +

Select

+
+

+ Select component is a dropdown menu for selecting an option from a list. +

+ + ); +} diff --git a/src/sections/Projects/Sistent/components/select/index.js b/src/sections/Projects/Sistent/components/select/index.js index 082b9bedec7b..e22159e4ad60 100644 --- a/src/sections/Projects/Sistent/components/select/index.js +++ b/src/sections/Projects/Sistent/components/select/index.js @@ -17,6 +17,8 @@ import { Select, OutlinedInput, } from "@mui/material"; +import Header from "./header"; +import SectionNav from "./section-nav"; const SistentSelect = () => { const location = useLocation(); @@ -30,45 +32,8 @@ const SistentSelect = () => { return (
- -

Select

-
-

- Select component is a dropdown menu for selecting an option from a - list. -

-
- navigate("/projects/sistent/components/select")} - title="Overview" - /> - - navigate("/projects/sistent/components/select/guidance") - } - title="Guidance" - /> - navigate("/projects/sistent/components/select/code")} - title="Code" - /> -
+
+

The Select component is a versatile and customizable element diff --git a/src/sections/Projects/Sistent/components/select/section-nav.js b/src/sections/Projects/Sistent/components/select/section-nav.js new file mode 100644 index 000000000000..fa6098591ac8 --- /dev/null +++ b/src/sections/Projects/Sistent/components/select/section-nav.js @@ -0,0 +1,38 @@ +import { navigate } from "gatsby"; +import TabButton from "../../../../../reusecore/Button"; +import React from "react"; +import { useLocation } from "@reach/router"; +export default function SectionNav() { + const location = useLocation(); + return ( +

+ navigate("/projects/sistent/components/select")} + title="Overview" + /> + navigate("/projects/sistent/components/select/guidance")} + title="Guidance" + /> + navigate("/projects/sistent/components/select/code")} + title="Code" + /> +
+ ); +}