@@ -2,17 +2,16 @@ import React from "react";
2
2
import { SistentThemeProvider } from "@layer5/sistent" ;
3
3
import { SistentLayout } from "../../sistent-layout" ;
4
4
import { Row } from "../../../../../reusecore/Layout" ;
5
- import { useLocation } from "@reach/router" ;
6
5
import { useStyledDarkMode } from "../../../../../theme/app/useStyledDarkMode" ;
7
- import { navigate } from "gatsby" ;
8
- import TabButton from "../../../../../reusecore/Button" ;
9
6
import {
10
7
FormControl ,
11
8
InputLabel ,
12
9
MenuItem ,
13
10
Select ,
14
11
OutlinedInput ,
15
12
} from "@mui/material" ;
13
+ import Header from "../header/header" ;
14
+ import SectionNav from "../section-nav/section-nav" ;
16
15
17
16
const SistentSelect = ( ) => {
18
17
const { isDark } = useStyledDarkMode ( ) ;
@@ -224,52 +223,4 @@ const SistentSelect = () => {
224
223
) ;
225
224
} ;
226
225
227
- export function SectionNav ( ) {
228
- const location = useLocation ( ) ;
229
- return (
230
- < div className = "filterBtns" >
231
- < TabButton
232
- className = {
233
- location . pathname === "/projects/sistent/components/select"
234
- ? "active"
235
- : ""
236
- }
237
- onClick = { ( ) => navigate ( "/projects/sistent/components/select" ) }
238
- title = "Overview"
239
- />
240
- < TabButton
241
- className = {
242
- location . pathname === "/projects/sistent/components/selet/guidance"
243
- ? "active"
244
- : ""
245
- }
246
- onClick = { ( ) => navigate ( "/projects/sistent/components/select/guidance" ) }
247
- title = "Guidance"
248
- />
249
- < TabButton
250
- className = {
251
- location . pathname === "/projects/sistent/components/select/code"
252
- ? "active"
253
- : ""
254
- }
255
- onClick = { ( ) => navigate ( "/projects/sistent/components/select/code" ) }
256
- title = "Code"
257
- />
258
- </ div >
259
- ) ;
260
- }
261
-
262
- export function Header ( ) {
263
- return (
264
- < >
265
- < a id = "Identity" >
266
- < h2 > Select</ h2 >
267
- </ a >
268
- < p >
269
- Select component is a dropdown menu for selecting an option from a list.
270
- </ p >
271
- </ >
272
- ) ;
273
- }
274
-
275
226
export default SistentSelect ;
0 commit comments