summaryrefslogtreecommitdiffhomepage
path: root/gui/src
diff options
context:
space:
mode:
Diffstat (limited to 'gui/src')
-rw-r--r--gui/src/renderer/context.tsx2
-rw-r--r--gui/src/renderer/redux/store.ts9
2 files changed, 4 insertions, 7 deletions
diff --git a/gui/src/renderer/context.tsx b/gui/src/renderer/context.tsx
index e54f16b1ea..4a905be6b1 100644
--- a/gui/src/renderer/context.tsx
+++ b/gui/src/renderer/context.tsx
@@ -10,7 +10,7 @@ if (process.env.NODE_ENV === 'development') {
AppContext.displayName = 'AppContext';
}
-export default function withAppContext<Props>(BaseComponent: React.ComponentClass<Props>) {
+export default function withAppContext<Props>(BaseComponent: React.ComponentType<Props>) {
// Exclude the IAppContext from props since those are injected props
const wrappedComponent = (props: Omit<Props, keyof IAppContext>) => {
return (
diff --git a/gui/src/renderer/redux/store.ts b/gui/src/renderer/redux/store.ts
index 3af628ccd4..bedaddf1bd 100644
--- a/gui/src/renderer/redux/store.ts
+++ b/gui/src/renderer/redux/store.ts
@@ -1,5 +1,5 @@
import { connectRouter, push, replace, routerMiddleware } from 'connected-react-router';
-import { applyMiddleware, combineReducers, compose, createStore, Dispatch, Store } from 'redux';
+import { applyMiddleware, combineReducers, compose, createStore, Dispatch } from 'redux';
import accountActions, { AccountAction } from './account/actions';
import accountReducer, { IAccountReduxState } from './account/reducers';
@@ -32,13 +32,10 @@ export type ReduxAction =
| SupportAction
| VersionAction
| UserInterfaceAction;
-export type ReduxStore = Store<IReduxState, ReduxAction>;
+export type ReduxStore = ReturnType<typeof configureStore>;
export type ReduxDispatch = Dispatch<ReduxAction>;
-export default function configureStore(
- routerHistory: History,
- initialState?: IReduxState,
-): ReduxStore {
+export default function configureStore(routerHistory: History, initialState?: IReduxState) {
const actionCreators = {
...accountActions,
...connectionActions,