ZonesMap refactor

This commit is contained in:
vjrj 2018-03-03 11:41:12 +01:00
parent cbc3d07f4a
commit e175762c4e

View file

@ -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 = {
};