This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
forked from chingu-voyages/v8-geckos-team-07
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⚗ - trying to pass providerData to Dashboard
- Loading branch information
Showing
4 changed files
with
54 additions
and
83 deletions.
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 |
---|---|---|
|
@@ -25,7 +25,6 @@ const Header = (props) => ( | |
<h1>Habit Tracker</h1> | ||
</header> | ||
} | ||
|
||
</div> | ||
); | ||
|
||
|
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,28 @@ | ||
import React, { Component } from 'react'; | ||
import CalendarHeatmap from 'react-calendar-heatmap'; | ||
import 'react-calendar-heatmap/dist/styles.css'; | ||
import ReactTooltip from 'react-tooltip'; | ||
|
||
class CalHM extends Component { | ||
|
||
render() { | ||
return ( | ||
<div> | ||
<CalendarHeatmap | ||
startDate={new Date('2019-01-01')} | ||
endDate={new Date('2019-05-01')} | ||
values={[ | ||
{ date: '2019-04-20' }, | ||
{ date: '2019-04-21' }, | ||
{ date: '2016-04-22' }, | ||
{ date: '2016-04-23' }, | ||
// ...and so on | ||
]} | ||
/> | ||
<ReactTooltip /> | ||
</div> | ||
) | ||
|
||
} | ||
} | ||
export default CalHM; |