Skip to content

Commit caf53c5

Browse files
author
Vivek Vishal
authored
Update select/guidance.js
Signed-off-by: Vivek Vishal <[email protected]>
1 parent bf9014b commit caf53c5

File tree

1 file changed

+40
-3
lines changed
  • src/sections/Projects/Sistent/components/select

1 file changed

+40
-3
lines changed

src/sections/Projects/Sistent/components/select/guidance.js

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ import {
1313
OutlinedInput,
1414
} from "@mui/material";
1515
import { useStyledDarkMode } from "../../../../../theme/app/useStyledDarkMode";
16-
import { Header, SectionNav } from ".";
16+
import { useLocation } from "@reach/router";
17+
import { navigate } from "gatsby";
18+
import TabButton from "../../../../../reusecore/Button";
19+
1720
const SelectGuidance = () => {
1821
const { isDark } = useStyledDarkMode();
1922
const [selectedAge, setSelectedAge] = React.useState("");
@@ -22,11 +25,45 @@ const SelectGuidance = () => {
2225
let agesList = event.target.value;
2326
setMultipleAges(agesList);
2427
};
28+
const location = useLocation();
2529
return (
2630
<SistentLayout title="Select">
2731
<div className="content">
28-
<Header />
29-
<SectionNav />
32+
<a id="Identity">
33+
<h2>Select</h2>
34+
</a>
35+
<p>
36+
Select component is a dropdown menu for selecting an option from a list.
37+
</p>
38+
<div className="filterBtns">
39+
<TabButton
40+
className={
41+
location.pathname === "/projects/sistent/components/select"
42+
? "active"
43+
: ""
44+
}
45+
onClick={() => navigate("/projects/sistent/components/select")}
46+
title="Overview"
47+
/>
48+
<TabButton
49+
className={
50+
location.pathname === "/projects/sistent/components/select/guidance"
51+
? "active"
52+
: ""
53+
}
54+
onClick={() => navigate("/projects/sistent/components/select/guidance")}
55+
title="Guidance"
56+
/>
57+
<TabButton
58+
className={
59+
location.pathname === "/projects/sistent/components/select/code"
60+
? "active"
61+
: ""
62+
}
63+
onClick={() => navigate("/projects/sistent/components/select/code")}
64+
title="Code"
65+
/>
66+
</div>
3067
<div className="main-content">
3168
<a id="Functions">
3269
<h2>Functions</h2>

0 commit comments

Comments
 (0)