File tree Expand file tree Collapse file tree
src/sections/Projects/Sistent/components/select Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ import {
1515 OutlinedInput ,
1616 Select ,
1717} from "@mui/material" ;
18- import { Header , SectionNav } from "." ;
18+
19+ import { useLocation } from "@reach/router" ;
20+ import { navigate } from "gatsby" ;
21+ import TabButton from "../../../../../reusecore/Button" ;
1922
2023const codes = {
2124 "variant-outlined" : `<Select>
@@ -152,11 +155,45 @@ const SelectCode = () => {
152155 let agesList = event . target . value ;
153156 setMultipleAges ( agesList ) ;
154157 } ;
158+ const location = useLocation ( ) ;
155159 return (
156160 < SistentLayout title = "Select" >
157161 < div className = "content" >
158- < Header />
159- < SectionNav />
162+ < a id = "Identity" >
163+ < h2 > Select</ h2 >
164+ </ a >
165+ < p >
166+ Select component is a dropdown menu for selecting an option from a list.
167+ </ p >
168+ < div className = "filterBtns" >
169+ < TabButton
170+ className = {
171+ location . pathname === "/projects/sistent/components/select"
172+ ? "active"
173+ : ""
174+ }
175+ onClick = { ( ) => navigate ( "/projects/sistent/components/select" ) }
176+ title = "Overview"
177+ />
178+ < TabButton
179+ className = {
180+ location . pathname === "/projects/sistent/components/select/guidance"
181+ ? "active"
182+ : ""
183+ }
184+ onClick = { ( ) => navigate ( "/projects/sistent/components/select/guidance" ) }
185+ title = "Guidance"
186+ />
187+ < TabButton
188+ className = {
189+ location . pathname === "/projects/sistent/components/select/code"
190+ ? "active"
191+ : ""
192+ }
193+ onClick = { ( ) => navigate ( "/projects/sistent/components/select/code" ) }
194+ title = "Code"
195+ />
196+ </ div >
160197
161198 < div className = "main-content" >
162199 < a id = "Select variants" >
You can’t perform that action at this time.
0 commit comments