Fix prop-types

This commit is contained in:
Tom Russell 2019-05-27 20:28:28 +01:00
parent 8aeb92705b
commit 51ef47e50a
3 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,7 @@ const BuildingEdit = (props) => {
BuildingEdit.propTypes = {
user: PropTypes.object,
match: PropTypes.object,
building_id: PropTypes.string,
building_id: PropTypes.number
}
class EditForm extends Component {
@ -277,7 +277,7 @@ EditForm.propTypes = {
like: PropTypes.bool,
building_like: PropTypes.bool,
selectBuilding: PropTypes.func,
building_id: PropTypes.string,
building_id: PropTypes.number,
inactive: PropTypes.bool,
fields: PropTypes.array
}

View File

@ -72,7 +72,7 @@ const BuildingView = (props) => {
}
BuildingView.propTypes = {
building_id: PropTypes.string,
building_id: PropTypes.number,
match: PropTypes.object,
uprns: PropTypes.arrayOf(PropTypes.shape({
uprn: PropTypes.string.isRequired,
@ -130,7 +130,7 @@ DataSection.propTypes = {
intro: PropTypes.string,
help: PropTypes.string,
inactive: PropTypes.bool,
building_id: PropTypes.string,
building_id: PropTypes.number,
children: PropTypes.node
}

View File

@ -114,7 +114,7 @@ MyAccountPage.propTypes = {
user: PropTypes.shape({
username: PropTypes.string,
email: PropTypes.string,
registered: PropTypes.string,
registered: PropTypes.date,
api_key: PropTypes.string,
error: PropTypes.object
}),