Commit fe1a958a authored by Vladimir Kiryakov's avatar Vladimir Kiryakov
Browse files

fix es-lint warings

parent beffe745
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {Router as ReactRouter, Route, IndexRedirect, browserHistory} from 'react-router';
import {syncHistoryWithStore} from 'react-router-redux'
import Main from './modules/UIKit/containers/Main';
import SubscribeToTopic from './modules/MQTT/containers/SubscribeToTopic';
import MQTTCombinedView from './modules/MQTT';
......
......@@ -3,7 +3,6 @@ import thunk from 'redux-thunk';
import mqtt from './mqtt';
import {routerMiddleware} from 'react-router-redux'
import createHistory from 'history/createBrowserHistory'
import {composeWithDevTools} from 'redux-devtools-extension'
import config from '../config';
......
import React from 'react';
import PropTypes from 'prop-types'
import styled from 'styled-components';
import _ from 'lodash';
import classNames from 'classnames'
import {Field, reduxForm} from 'redux-form'
import {Collapse} from 'reactstrap';
......
......@@ -5,13 +5,6 @@ import classNames from 'classnames';
import _ from 'lodash';
import ReactJson from 'react-json-view'
const Header = styled.div`
width: 100%;
padding: 2px 10px;
font-weight: bold;
border: 1px solid #ccc;
`;
const MessageContent = styled.div`
background-color: #f2f2f2;
width: 100%;
......
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import _ from 'lodash';
import {connect as mqttConnect} from '../../../../actions/mqtt';
import Chart from '../../components/Chart';
const mapStateToProps = ({mqtt, form}, ownProps) => {
const mapStateToProps = ({mqtt}) => {
return ({
accelXYZ: mqtt.accelXYZ
})
......
......@@ -5,7 +5,7 @@ import {connect as mqttConnect, toggleMqttForm} from '../../../../actions/mqtt';
import SubscribeToTopicView from '../../components/SubscribeForm';
const mapStateToProps = ({mqtt, form}, ownProps) => {
const mapStateToProps = ({mqtt, form}) => {
return ({
displayForm: mqtt.displayForm,
isConnected: mqtt.isConnected,
......
......@@ -3,7 +3,7 @@ import {connect} from 'react-redux';
import _ from 'lodash';
import SubscriptionView from '../../components/SubscriptionView';
const mapStateToProps = ({mqtt, form}, ownProps) => {
const mapStateToProps = ({mqtt, form}) => {
return ({
displayType: _.get(form, 'mqtt.values.displayType'),
messages: mqtt.messages
......
import React, {Fragment} from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import _ from 'lodash';
import Chart from './containers/Chart';
......
import React, {Fragment} from 'react';
import React from 'react';
import PropTypes from 'prop-types'
import styled from 'styled-components';
import Spinner from '../Spinner';
......
import {connect} from 'react-redux';
import React from 'react';
import PropTypes from 'prop-types';
......
import {connect} from 'react-redux';
import React from 'react';
import PropTypes from 'prop-types';
import Sidebar from '../components/Sidebar';
import Link from '../components/Sidebar/Link';
import Header from '../components/Header';
import classNames from 'classnames'
import { ToastContainer, toast } from 'react-toastify';
import { ToastContainer } from 'react-toastify';
import styled from "styled-components";
class Main extends React.Component {
......
......@@ -29,8 +29,9 @@ export default (state = {
const y = _.get(obj, 'accel.y');
const z = _.get(obj, 'accel.z');
const timestamp = _.get(obj, 'timestamp');
const button = _.get(obj, 'button');
if (x && y && z) {
return [x, y, z, timestamp];
return [x, y, z, timestamp, button];
}
}).filter((i) => !_.isNil(i));
......
import {createStore, applyMiddleware, compose} from 'redux'
import {createStore} from 'redux'
import rootReducer from './reducers/rootReducer'
import middlewares from './middlewares'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment