-
-
Notifications
You must be signed in to change notification settings - Fork 215
Expand file tree
/
Copy pathLearnNow.tsx
More file actions
25 lines (22 loc) · 763 Bytes
/
LearnNow.tsx
File metadata and controls
25 lines (22 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React, { useEffect } from "react";
import { Outlet } from "react-router-dom";
import Sidebar from "../components/Sidebar";
import { LearnNowContainer, SidebarContainer, ContentContainer } from "../styles/pages/LearnNow";
import { steps } from "../constants/learningSteps/steps";
const LearnNow: React.FC = () => {
useEffect(() => {
const computedBg = getComputedStyle(document.documentElement).getPropertyValue('--bg-color');
console.log("LearnNow: computed --bg-color:", computedBg);
}, []);
return (
<LearnNowContainer>
<SidebarContainer>
<Sidebar steps={steps} />
</SidebarContainer>
<ContentContainer>
<Outlet />
</ContentContainer>
</LearnNowContainer>
);
};
export default LearnNow;