@@ -2,7 +2,7 @@ import { Link } from 'react-router-dom';
22import { useEffect , useState , useMemo , useCallback } from 'react' ;
33import { ENDPOINTS } from '~/utils/URL' ;
44import axios from 'axios' ;
5- import './TotalReport.css' ;
5+ import styles from './TotalReport.module .css' ;
66import { Button } from 'reactstrap' ;
77import ReactTooltip from 'react-tooltip' ;
88import TotalReportBarGraph from './TotalReportBarGraph' ;
@@ -320,9 +320,9 @@ function TotalPeopleReport(props) {
320320 const totalPeopleInfo = totalPeople => {
321321 const totalTangibleTime = totalPeople . reduce ( ( acc , obj ) => acc + Number ( obj . tangibleTime ) , 0 ) ;
322322 return (
323- < div className = { `total-container ${ darkMode ? 'bg-yinmn-blue text-light' : '' } ` } >
324- < div className = { `total-title ${ darkMode ? 'text-azure' : '' } ` } > Total People Report</ div >
325- < div className = "total-period" >
323+ < div className = { `${ styles . totalContainer } ${ darkMode ? 'bg-yinmn-blue text-light' : '' } ` } >
324+ < div className = { `${ styles . totalTitle } ${ darkMode ? 'text-azure' : '' } ` } > Total People Report</ div >
325+ < div className = { styles . totalPeriod } >
326326 In the period from{ ' ' }
327327 { startDate . toLocaleDateString ( 'en-US' , {
328328 month : '2-digit' ,
@@ -337,13 +337,13 @@ function TotalPeopleReport(props) {
337337 } ) }
338338 :
339339 </ div >
340- < div className = "total-item" >
341- < span className = "total-number" > { allPeople . length } </ span >
342- < span className = "total-text" > members have contributed more than 10 hours.</ span >
340+ < div className = { styles . totalItem } >
341+ < span className = { styles . totalNumber } > { allPeople . length } </ span >
342+ < span className = { styles . totalText } > members have contributed more than 10 hours.</ span >
343343 </ div >
344- < div className = "total-item" >
345- < span className = "total-number" > { totalTangibleTime . toFixed ( 2 ) } </ span >
346- < span className = "total-text" > hours of tangible time have been logged.</ span >
344+ < div className = { styles . totalItem } >
345+ < span className = { styles . totalNumber } > { totalTangibleTime . toFixed ( 2 ) } </ span >
346+ < span className = { styles . totalText } > hours of tangible time have been logged.</ span >
347347 </ div >
348348 < div >
349349 { showMonthly && peopleInMonth . length > 0 ? (
@@ -352,10 +352,10 @@ function TotalPeopleReport(props) {
352352 { showYearly && peopleInYear . length > 0 ? (
353353 < TotalReportBarGraph barData = { peopleInYear } range = "year" />
354354 ) : null }
355- { showWarning && < div className = 'total-warning' > Graphs are shown only if the selected date range is greater than one month.</ div > }
355+ { showWarning && < div className = { styles . totalWarning } > Graphs are shown only if the selected date range is greater than one month.</ div > }
356356 </ div >
357357 { allPeople . length ? (
358- < div className = "total-detail" >
358+ < div className = { styles . totalDetail } >
359359 < Button onClick = { onClickTotalPeopleDetail } >
360360 { showTotalPeopleTable ? 'Hide Details' : 'Show Details' }
361361 </ Button >
@@ -399,7 +399,7 @@ function TotalPeopleReport(props) {
399399 ) : (
400400 < div >
401401 < div > { totalPeopleInfo ( allPeople ) } </ div >
402- < div className = ' tables' > { showTotalPeopleTable ? totalPeopleTable ( allPeople ) : null } </ div >
402+ < div className = { styles . tables } > { showTotalPeopleTable ? totalPeopleTable ( allPeople ) : null } </ div >
403403 </ div >
404404 ) }
405405 </ div >
0 commit comments