- implement tips on loading screen

- implement centralized sections
- removed react-spinner package
This commit is contained in:
Amruth Pillai
2020-07-06 10:02:17 +05:30
parent 65fc779d58
commit 6d3e5823fc
18 changed files with 111 additions and 52 deletions

View File

@ -1,5 +1,5 @@
import React from "react";
import Profile from "../sections/Profile";
import React, { Fragment } from "react";
import sections from "../../../data/leftSections";
import LeftNavbar from "./LeftNavbar";
import styles from "./LeftSidebar.module.css";
@ -9,7 +9,12 @@ const LeftSidebar = () => {
<LeftNavbar />
<div className={styles.container}>
<Profile />
{sections.map(({ id, component: Component }) => (
<Fragment key={id}>
<Component />
<hr />
</Fragment>
))}
</div>
</div>
);