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, +};