-
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathOverview.jsx
More file actions
32 lines (29 loc) · 1.26 KB
/
Overview.jsx
File metadata and controls
32 lines (29 loc) · 1.26 KB
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
26
27
28
29
30
31
32
/*********************************************************************************
* Component: OVERVIEW
* Author: Henry Ng - 01/17/20
* This component display the number of projects and active projects
********************************************************************************/
import React from 'react';
import { TOTAL_PROJECTS, ACTIVE_PROJECTS } from './../../../languages/en/ui';
import styles from "./Overview.module.css"
const Overview = props => {
return (
<div className="projects__overview--top">
<div className={`${styles["card_project"]} m-2`} id="card_project">
<div className={`${styles["card-body"]} card-body`}>
<h6 className={`${styles["card-text"]} card-text ml-3`}>
<i className="fa fa-folder" aria-hidden="true"></i> {TOTAL_PROJECTS}: {props.numberOfProjects}
</h6>
</div>
</div>
<div className={`${styles["card_active"]} m-2`} id="card_active">
<div className={`${styles["card-body"]} card-body`}>
<h6 className={`${styles["card-text"]} card-text ml-3`}>
<i className="fa fa-circle fa-circle-isActive" aria-hidden="true"></i> {ACTIVE_PROJECTS}: {props.numberOfActive}
</h6>
</div>
</div>
</div>
);
};
export default Overview