mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
Add prop types for ActionBar
This commit is contained in:
parent
5405eb82c4
commit
14cbe59843
1 changed files with 8 additions and 2 deletions
|
|
@ -84,6 +84,14 @@ const ActionBar = props => {
|
|||
}
|
||||
};
|
||||
|
||||
const { arrayOf, bool, func, instanceOf, number, object, oneOf, shape, string } = PropTypes;
|
||||
|
||||
ActionBar.propTypes = {
|
||||
isOwnListing: bool.isRequired,
|
||||
isClosed: bool.isRequired,
|
||||
editParams: object.isRequired,
|
||||
}
|
||||
|
||||
// TODO: price unit (per x), custom fields, contact, reviews
|
||||
// N.B. All the presentational content needs to be extracted to their own components
|
||||
export class ListingPageComponent extends Component {
|
||||
|
|
@ -392,8 +400,6 @@ ListingPageComponent.defaultProps = {
|
|||
tab: 'listing',
|
||||
};
|
||||
|
||||
const { arrayOf, bool, func, instanceOf, number, object, oneOf, shape, string } = PropTypes;
|
||||
|
||||
ListingPageComponent.propTypes = {
|
||||
// from withRouter
|
||||
history: shape({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue