Skip to content

Commit bf9014b

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

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/code.js

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff 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

2023
const 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">

0 commit comments

Comments
 (0)