Skip to content

Commit

Permalink
fix: finished up tour, added className prop for RequirementsSidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-bhagava committed Jan 13, 2024
1 parent 210525a commit e52b08a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/components/Dashboard/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,11 @@ function Dashboard() {
content: "Here you can view your profile information",
placement: "right"
},
{
target: ".four",
content: "This sidebar shows the requirements you have fulfilled so far, and you can check out each category of requirements",
placement: "right"
},
];

const [runTour, setRunTour] = useState(false);
Expand Down Expand Up @@ -445,7 +450,7 @@ function Dashboard() {
</>
)}
</Content>
<RequirementsSidebar changeColorSchema={setColorSchema}/>
<RequirementsSidebar className="four" changeColorSchema={setColorSchema}/>
</Layout>
</Layout>
<Modal
Expand Down
4 changes: 2 additions & 2 deletions src/components/Dashboard/Requirements/Requirements.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,15 @@ const colors = [
]


function RequirementsSidebar({changeColorSchema}) {
function RequirementsSidebar({changeColorSchema, className=""}) {

const [requirements, setRequirements] = useState(allRequirements['cs'])

const setReqCategory = (category) => {
setRequirements(allRequirements[category])
}
return (
<Sider style={{ padding: '2rem', color: "white", }}
<Sider className={className} style={{ padding: '2rem', color: "white", }}
width="auto">
<div style={{
display: "flex",
Expand Down

0 comments on commit e52b08a

Please sign in to comment.