Skip to content

Commit

Permalink
style(eslint): apply eslint requirements to let ci pass
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineDao committed Mar 31, 2019
1 parent 4efcb68 commit 8c3e91b
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 28 deletions.
2 changes: 0 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';
import Tooltip from './components/Tooltip';
import BottomNav from './components/BottomNav';
import Renderer from './components/Renderer';
// import Drawer from './components/Drawer'
import Drawer from './components/DrawerFunction'
import AppBar from './components/AppBar'
import SwitchGroup from './components/SwitchGroup'
import UploadDialog from './components/UploadDialog';

import CssBaseline from '@material-ui/core/CssBaseline';
Expand Down
1 change: 0 additions & 1 deletion src/components/AppBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { withStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
import IconButton from '@material-ui/core/IconButton';
import MenuIcon from '@material-ui/icons/Menu';

Expand Down
2 changes: 0 additions & 2 deletions src/components/BottomNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import Icon from '@material-ui/core/Icon';
import RestoreIcon from '@material-ui/icons/Restore';
import FavoriteIcon from '@material-ui/icons/Favorite';
import LocationOnIcon from '@material-ui/icons/LocationOn';
import OpenInBrowser from '@material-ui/icons/OpenInBrowser';

import Paper from '@material-ui/core/Paper';

const styles = theme => ({
Expand Down
12 changes: 0 additions & 12 deletions src/components/DrawerFunction.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
import Drawer from '@material-ui/core/Drawer';
import CssBaseline from '@material-ui/core/CssBaseline';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import List from '@material-ui/core/List';
import Typography from '@material-ui/core/Typography';
import Divider from '@material-ui/core/Divider';
import IconButton from '@material-ui/core/IconButton';
import MenuIcon from '@material-ui/icons/Menu';
import ChevronLeftIcon from '@material-ui/icons/ChevronLeft';
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText';
import InboxIcon from '@material-ui/icons/MoveToInbox';
import MailIcon from '@material-ui/icons/Mail';

import SwitchGroup from './SwitchGroup'

Expand Down
4 changes: 0 additions & 4 deletions src/components/SwitchGroup.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import React from 'react';
import FormLabel from '@material-ui/core/FormLabel';
import FormControl from '@material-ui/core/FormControl';
import FormGroup from '@material-ui/core/FormGroup';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import FormHelperText from '@material-ui/core/FormHelperText';
import Switch from '@material-ui/core/Switch';
import { connect } from 'react-redux';
import { toggle } from '../actions/gbmxl';
Expand Down
2 changes: 0 additions & 2 deletions src/components/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import AddIcon from '@material-ui/icons/Add';
import Fab from '@material-ui/core/Fab';
import DeleteIcon from '@material-ui/icons/Delete';
import IconButton from '@material-ui/core/IconButton';
import Tooltip from '@material-ui/core/Tooltip';
import { connect } from 'react-redux';
import { increment } from '../actions/gbmxl';
Expand Down
3 changes: 0 additions & 3 deletions src/components/UploadDialog.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import React from 'react';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import DialogTitle from '@material-ui/core/DialogTitle';
import BottomNavigationAction from '@material-ui/core/BottomNavigationAction';
import OpenInBrowser from '@material-ui/icons/OpenInBrowser';


export default class FormDialog extends React.Component {
Expand Down
4 changes: 2 additions & 2 deletions src/reducers/gbmxl.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ export default (state = gbXMLDefaultState, action) => {
switch (action.type) {
case 'TOGGLE':
return {
... state,
...state,
[action.toggle.name]: action.toggle.bool
}

case 'LOAD_STRING':
return {
... state,
...state,
string: action.string
}

Expand Down

0 comments on commit 8c3e91b

Please sign in to comment.