Skip to content
Snippets Groups Projects
Commit d7ce65f9 authored by danieldeng2's avatar danieldeng2
Browse files

Change left bar status to link to notice board

parent 6ff019d9
Branches
No related tags found
No related merge requests found
...@@ -13,4 +13,4 @@ body { ...@@ -13,4 +13,4 @@ body {
code { code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace; monospace;
} }
\ No newline at end of file
import React from "react"; import React from "react";
import styles from "./style.module.scss"; import styles from "./style.module.scss";
import { Link } from "react-router-dom";
export interface LeftBarProps{ export interface LeftBarProps{
children: React.ReactNode; children: React.ReactNode;
...@@ -8,7 +9,7 @@ export interface LeftBarProps{ ...@@ -8,7 +9,7 @@ export interface LeftBarProps{
const LeftBar: React.FC<LeftBarProps> = ({children}: LeftBarProps) => { const LeftBar: React.FC<LeftBarProps> = ({children}: LeftBarProps) => {
return ( return (
<div id={styles.leftbarWrapper}> <div id={styles.leftbarWrapper}>
<p className={styles.leftbarStatus}>1 DEADLINE</p> <p className={styles.leftbarStatus}><Link to="/Dashboard">1 NOTICE</Link></p>
{children} {children}
</div> </div>
); );
......
...@@ -39,6 +39,11 @@ ...@@ -39,6 +39,11 @@
transform: translateX(0); transform: translateX(0);
} }
.leftbarStatus a {
text-decoration: none !important;
color: #000 !important;
}
@media (max-width: 62rem) { @media (max-width: 62rem) {
.leftbarStatus { .leftbarStatus {
margin-top: 1.875rem; margin-top: 1.875rem;
......
...@@ -6,23 +6,23 @@ import WorkDueGroup from "components/molecules/WorkDueGroup"; ...@@ -6,23 +6,23 @@ import WorkDueGroup from "components/molecules/WorkDueGroup";
const LeftBarModuleList: React.FC = () => { const LeftBarModuleList: React.FC = () => {
let sortButtons = [ let sortButtons = [
{ {
title: "Progress", title: "All",
active: true,
}, },
{ {
title: "Module Title", title: "In Progress",
active: true,
}, },
{ {
title: "Module Code", title: "Not Started",
}, },
{ {
title: "Term", title: "Completed",
}, },
]; ];
return ( return (
<LeftBar> <LeftBar>
<SideBarTabGroup title="Sort" buttons={sortButtons} /> <SideBarTabGroup title="Filter" buttons={sortButtons} />
<WorkDueGroup/> <WorkDueGroup/>
</LeftBar> </LeftBar>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment