From f28d3c6bc35e1a91f1febf29b07539069c4df98e Mon Sep 17 00:00:00 2001 From: Yannick Date: Sun, 28 Jan 2018 20:34:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Travis=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/removeMeasurementButton/index.js | 2 +- src/routes/account/index.js | 1 - src/routes/edit/index.js | 4 ++-- src/routes/progress/index.js | 7 ++++++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/removeMeasurementButton/index.js b/src/components/removeMeasurementButton/index.js index b1393d9..cb9dc33 100644 --- a/src/components/removeMeasurementButton/index.js +++ b/src/components/removeMeasurementButton/index.js @@ -21,5 +21,5 @@ export default class RemoveMeasurementButton extends Component { RemoveMeasurementButton.propTypes = { Id: PropTypes.string.isRequired, removeMeasurement: PropTypes.func.isRequired, - label: PropTypes.string.isRequired, + // label: PropTypes.string.isRequired, }; diff --git a/src/routes/account/index.js b/src/routes/account/index.js index 249dd1e..6e5a2dc 100644 --- a/src/routes/account/index.js +++ b/src/routes/account/index.js @@ -39,5 +39,4 @@ Account.propTypes = { // measurements: PropTypes.object.isRequired, email: PropTypes.object.isRequired, logout: PropTypes.func.isRequired, - login: PropTypes.string.isRequired, }; diff --git a/src/routes/edit/index.js b/src/routes/edit/index.js index 82bda8f..adc67e9 100644 --- a/src/routes/edit/index.js +++ b/src/routes/edit/index.js @@ -1,8 +1,8 @@ import { Component } from 'preact'; import { PropTypes } from 'preact-compat'; import { route } from 'preact-router'; -import moment from 'moment'; -import DatePicker from 'react-datepicker'; +// import moment from 'moment'; +// import DatePicker from 'react-datepicker'; import base from '../../base'; diff --git a/src/routes/progress/index.js b/src/routes/progress/index.js index 8cb30f6..5a1d0d8 100644 --- a/src/routes/progress/index.js +++ b/src/routes/progress/index.js @@ -8,6 +8,7 @@ import { Area, CartesianGrid, } from 'recharts'; +import { PropTypes } from 'preact-compat'; import base from '../../base'; @@ -158,4 +159,8 @@ export default class Progress extends Component { ); } -} \ No newline at end of file +} + +Progress.propTypes = { + uid: PropTypes.string.isRequired, +};