From 55b5233ee4644737214feeda28851990719efc68 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Fri, 25 Jan 2019 18:06:58 +0100 Subject: [PATCH] Clean up and fix build --- app/src/App.tsx | 4 ++-- app/src/reducers/Theme.ts | 11 ----------- app/src/reducers/index.ts | 2 -- app/webpack.config.js | 2 +- 4 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 app/src/reducers/Theme.ts diff --git a/app/src/App.tsx b/app/src/App.tsx index 16a74a0..cb757bd 100644 --- a/app/src/App.tsx +++ b/app/src/App.tsx @@ -98,7 +98,7 @@ const styles = (theme: Theme) => { }, content: { width: '100vw', - overflowX: 'hidden', + overflowX: 'hidden' as 'hidden', backgroundColor: theme.palette.background.default, transition: theme.transitions.create('transform', { easing: theme.transitions.easing.sharp, @@ -107,7 +107,7 @@ const styles = (theme: Theme) => { transform: 'translateX(0px)', }, contentShift: { - overflowX: 'hidden', + overflowX: 'hidden' as 'hidden', width: '100vw', padding: 0, backgroundColor: theme.palette.background.default, diff --git a/app/src/reducers/Theme.ts b/app/src/reducers/Theme.ts deleted file mode 100644 index 6fa40d4..0000000 --- a/app/src/reducers/Theme.ts +++ /dev/null @@ -1,11 +0,0 @@ -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, {}) diff --git a/app/src/reducers/index.ts b/app/src/reducers/index.ts index 7a302f0..7e377ee 100644 --- a/app/src/reducers/index.ts +++ b/app/src/reducers/index.ts @@ -5,7 +5,6 @@ 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', @@ -63,7 +62,6 @@ const tooBigReducer: Reducer = (state = } const reducer = combineReducers({ - theme, tooBigReducer, publish: publishReducer, connection: connectionReducer, diff --git a/app/webpack.config.js b/app/webpack.config.js index d687390..afe1d6e 100644 --- a/app/webpack.config.js +++ b/app/webpack.config.js @@ -66,7 +66,7 @@ module.exports = { plugins: [ new LiveReloadPlugin({}), new HtmlWebpackPlugin({ template: './index.html', file: './build/index.html', inject: false }), - new BundleAnalyzerPlugin(), + // new BundleAnalyzerPlugin(), ], // When importing a module whose path matches one of the following, just