-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1107 from Greenstand/extra-card
extra card
- Loading branch information
Showing
5 changed files
with
105 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import ReportingCard from './ReportingCard'; | ||
import useLoadData from './ReportingCard.hook'; | ||
import NatureIcon from '@material-ui/icons/Nature'; | ||
|
||
export default function ReportingCard10(props) { | ||
const { startDate, endDate, /*disableSeeMore,*/ rows } = props; | ||
|
||
const data = useLoadData( | ||
startDate, | ||
endDate, | ||
'surviving_trees', | ||
'trees', | ||
undefined, | ||
rows | ||
); | ||
|
||
return ( | ||
<ReportingCard | ||
text={{ | ||
title: 'Surviving Trees', | ||
text1: 'Total', | ||
}} | ||
icon={NatureIcon} | ||
color="#76bb23" | ||
data={data} | ||
disableSeeMore={true} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import ReportingCard from './ReportingCard'; | ||
import useLoadData from './ReportingCard.hook'; | ||
import NatureIcon from '@material-ui/icons/Nature'; | ||
|
||
export default function ReportingCard10(props) { | ||
const { startDate, endDate, /*disableSeeMore,*/ rows } = props; | ||
|
||
const data = useLoadData( | ||
startDate, | ||
endDate, | ||
'surviving_species', | ||
'surviving_species', | ||
undefined, | ||
rows | ||
); | ||
|
||
return ( | ||
<ReportingCard | ||
text={{ | ||
title: 'Surviving Species', | ||
text1: 'Total', | ||
}} | ||
icon={NatureIcon} | ||
color="#76bb23" | ||
data={data} | ||
disableSeeMore={true} | ||
/> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
import ReportingCard from './ReportingCard'; | ||
import useLoadData from './ReportingCard.hook'; | ||
import NatureIcon from '@material-ui/icons/Nature'; | ||
|
||
export default function ReportingCard10(props) { | ||
const { startDate, endDate, /*disableSeeMore,*/ rows } = props; | ||
|
||
const data = useLoadData( | ||
startDate, | ||
endDate, | ||
'surviving_catchments', | ||
'catchments', | ||
(d) => d.average, | ||
rows | ||
); | ||
|
||
return ( | ||
<ReportingCard | ||
text={{ | ||
title: 'Surviving Catchments', | ||
text1: 'Average', | ||
}} | ||
icon={NatureIcon} | ||
color="#76bb23" | ||
data={data} | ||
disableSeeMore={true} | ||
/> | ||
); | ||
} |