Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Web Security | sidebar icons #693

Merged
merged 1 commit into from
Mar 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/WebSecurity/CodeReviews/CodeReview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { codeReviewData } from "./CodeReviewData";
import Labs from "../Common/Labs/Labs";

const CodeReview = () => {
return <Labs LabData={codeReviewData} />;
return <Labs LabData={codeReviewData} heading={"Code Review"} />;
};

export default CodeReview;
4 changes: 2 additions & 2 deletions src/components/WebSecurity/Common/Labs/Labs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { LevelButton } from "./RoomCardElement";
import Sidebar from "../../Sidebar";
import { Input } from "../SubmissionBoxElements";

const Labs = ({ LabData }) => {
const Labs = ({ LabData, heading }) => {
const [levelActive, setLevelActive] = useState("All");
const [categoryActive, setCategoryActive] = useState("All");
const [searchInput, setSearchInput] = useState("");
Expand Down Expand Up @@ -54,7 +54,7 @@ const Labs = ({ LabData }) => {
<>
<div style={{ width: "100%", maxWidth: "1200px", margin: "5px auto" }}>
<LabContainer>
<Sidebar heading={"Labs"} topics={LabData} onlyCat={true} setCategoryActive={setCategoryActive} />
<Sidebar heading={heading} topics={LabData} onlyCat={true} setCategoryActive={setCategoryActive} />

<RoomContainer>
<div className="header">
Expand Down
2 changes: 1 addition & 1 deletion src/components/WebSecurity/CrackMe/CrackMe.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import Lab from "../Common/Labs/Labs";
import { crackmeLabData } from "./CrackMeData";
const CrackMe = () => {
return <Lab LabData={crackmeLabData} />;
return <Lab LabData={crackmeLabData} heading={"Crack Me"} />;
};

export default CrackMe;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Labs from "../Common/Labs/Labs";
import { LabData } from "../Common/Labs/LabsData";

const WebSecurityLabs = () => {
return <Labs LabData={LabData} />;
return <Labs LabData={LabData} heading={"Labs"} />;
};

export default WebSecurityLabs;