mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-14 16:51:33 +10:00
- switched to useSelector
- implemented skills section
This commit is contained in:
@ -1,12 +1,9 @@
|
||||
import React, { Fragment, useContext } from "react";
|
||||
import ResumeContext from "../../../contexts/ResumeContext";
|
||||
import React, { Fragment } from "react";
|
||||
import sections from "../../../data/leftSections";
|
||||
import LeftNavbar from "./LeftNavbar";
|
||||
import styles from "./LeftSidebar.module.css";
|
||||
|
||||
const LeftSidebar = () => {
|
||||
const { state } = useContext(ResumeContext);
|
||||
|
||||
return (
|
||||
<div className="flex">
|
||||
<LeftNavbar />
|
||||
@ -14,7 +11,7 @@ const LeftSidebar = () => {
|
||||
<div className={styles.container}>
|
||||
{sections.map(({ id, name, event, component: Component }) => (
|
||||
<Fragment key={id}>
|
||||
<Component id={id} name={name} event={event} state={state} />
|
||||
<Component id={id} name={name} event={event} />
|
||||
<hr />
|
||||
</Fragment>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user