File tree Expand file tree Collapse file tree 1 file changed +40
-3
lines changed
src/sections/Projects/Sistent/components/select Expand file tree Collapse file tree 1 file changed +40
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ import {
15
15
OutlinedInput ,
16
16
Select ,
17
17
} 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" ;
19
22
20
23
const codes = {
21
24
"variant-outlined" : `<Select>
@@ -152,11 +155,45 @@ const SelectCode = () => {
152
155
let agesList = event . target . value ;
153
156
setMultipleAges ( agesList ) ;
154
157
} ;
158
+ const location = useLocation ( ) ;
155
159
return (
156
160
< SistentLayout title = "Select" >
157
161
< 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 >
160
197
161
198
< div className = "main-content" >
162
199
< a id = "Select variants" >
You can’t perform that action at this time.
0 commit comments