Fix emitter leaks, style, tree swaps

This commit is contained in:
Thomas Nordquist
2019-01-22 12:17:59 +01:00
parent 221abd8c48
commit d4ce58a8ec
22 changed files with 411 additions and 164 deletions

11
app/src/reducers/Theme.ts Normal file
View File

@@ -0,0 +1,11 @@
import { createReducer } from './lib'
import { createMuiTheme, Theme } from '@material-ui/core'
const initialState: Theme = createMuiTheme({
palette: {
type: 'dark',
},
typography: { useNextVariants: true },
})
export const theme = createReducer(initialState, {})

View File

@@ -7,6 +7,7 @@ import { PublishState, publishReducer } from './Publish'
import { ConnectionState, connectionReducer } from './Connection'
import { SettingsState, settingsReducer } from './Settings'
import { TreeState, treeReducer } from './Tree'
import { theme } from './theme'
export enum ActionTypes {
showUpdateNotification = 'SHOW_UPDATE_NOTIFICATION',
@@ -64,6 +65,7 @@ const tooBigReducer: Reducer<TooBigOfState | undefined, CustomAction> = (state =
}
const reducer = combineReducers({
theme,
tooBigReducer,
publish: publishReducer,
connection: connectionReducer,