diff --git a/app/src/components/Settings.tsx b/app/src/components/Settings.tsx index 35b23fa..d465747 100644 --- a/app/src/components/Settings.tsx +++ b/app/src/components/Settings.tsx @@ -1,23 +1,23 @@ import * as React from 'react' import * as q from '../../../backend/src/Model' -import Drawer from '@material-ui/core/Drawer' -import IconButton from '@material-ui/core/IconButton' -import Paper from '@material-ui/core/Paper' -import Divider from '@material-ui/core/Divider' -import MenuItem from '@material-ui/core/MenuItem' -import Select from '@material-ui/core/Select' +import { AppState, NodeOrder } from '../reducers' +import { + Divider, + Drawer, + IconButton, + Input, + InputLabel, + MenuItem, + Select, + Typography, +} from '@material-ui/core' +import { StyleRulesCallback, withStyles } from '@material-ui/core/styles' import ChevronRight from '@material-ui/icons/ChevronRight' - -import { Typography, InputBase, Input, InputLabel } from '@material-ui/core' -import { withStyles, StyleRulesCallback } from '@material-ui/core/styles' - -import { settingsActions } from '../actions' -import { AppState, NodeOrder } from '../reducers' - -import { connect } from 'react-redux' import { bindActionCreators } from 'redux' +import { connect } from 'react-redux' +import { settingsActions } from '../actions' const styles: StyleRulesCallback = theme => ({ drawer: { @@ -85,7 +85,6 @@ class Settings extends React.Component { private renderAutoExpand() { const { classes, autoExpandLimit } = this.props - return (
Auto Expand @@ -93,11 +92,10 @@ class Settings extends React.Component { value={autoExpandLimit} onChange={this.onChangeAutoExpand} input={} - displayEmpty={true} name="auto-expand" className={classes.input} > - Disabled + Collapsed Few Some Most diff --git a/app/src/reducers/index.ts b/app/src/reducers/index.ts index f7d4bf5..f9e312b 100644 --- a/app/src/reducers/index.ts +++ b/app/src/reducers/index.ts @@ -1,6 +1,7 @@ -import { Reducer, Action } from 'redux' import * as q from '../../../backend/src/Model' +import { Action, Reducer } from 'redux' + export enum ActionTypes { setAutoExpandLimit = 'SET_AUTO_EXPAND_LIMIT', toggleSettingsVisibility = 'TOGGLE_SETTINGS_VISIBILITY', @@ -47,7 +48,6 @@ const reducer: Reducer = (state, action) => if (!state) { throw Error('No initial state') } - console.log(action) switch (action.type) { case ActionTypes.setAutoExpandLimit: @@ -62,7 +62,6 @@ const reducer: Reducer = (state, action) => }, } case ActionTypes.setPublishTopic: - console.log(state) return { ...state, sidebar: { ...state.sidebar, publishTopic: action.publishTopic },