ZonesMap refactor
This commit is contained in:
parent
cbc3d07f4a
commit
e175762c4e
1 changed files with 11 additions and 9 deletions
|
|
@ -1,26 +1,28 @@
|
||||||
|
/* eslint-disable react/jsx-indent-props */
|
||||||
/* eslint-disable import/no-absolute-path */
|
/* eslint-disable import/no-absolute-path */
|
||||||
import React, { Fragment } from 'react';
|
/* eslint-disable import/no-absolute-path */
|
||||||
import PropTypes from 'prop-types';
|
|
||||||
import { translate } from 'react-i18next';
|
import React, { Component } from 'react';
|
||||||
import SubscriptionsMap from '/imports/ui/pages/Subscriptions/SubscriptionsMap';
|
import SubscriptionsMap from '/imports/ui/pages/Subscriptions/SubscriptionsMap';
|
||||||
|
|
||||||
class ZonesMap extends React.Component {
|
export default class ZonesMap extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.t = props.t;
|
this.state = {
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<div>
|
||||||
<SubscriptionsMap {...this.props} />
|
<SubscriptionsMap {...this.props} />
|
||||||
</Fragment>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ZonesMap.propTypes = {
|
ZonesMap.propTypes = {
|
||||||
history: PropTypes.object.isRequired
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default translate([], { wait: true })(ZonesMap);
|
ZonesMap.defaultProps = {
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue