Fix prop-types
This commit is contained in:
parent
8aeb92705b
commit
51ef47e50a
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user