typescript fixes - working now

This commit is contained in:
Hank Stoever
2019-09-04 10:30:47 -07:00
parent 49e3929b11
commit 8d19082c6e
4 changed files with 8 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
import { Store, wrapStore } from 'react-chrome-redux';
import { Store, wrapStore } from 'webext-redux';
import { createStore } from 'redux';
import { configureApp } from './AppConfig';
import reducers, { IAppState, loadState } from './store';
@@ -6,7 +6,7 @@ import reducers, { IAppState, loadState } from './store';
const preloadedState = loadState();
const store: Store<IAppState> = createStore(reducers, preloadedState);
configureApp(store);
configureApp(store as any);
wrapStore(store, {
portName: 'ExPort' // Communication port between the background component and views such as browser tabs.

View File

@@ -1,5 +1,5 @@
import * as React from 'react';
import { Store } from 'react-chrome-redux';
import { Store } from 'webext-redux';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import CounterApp from './containers/CounterApp';
@@ -14,7 +14,7 @@ const store = new Store({
store.ready().then(() => {
ReactDOM.render(
<Provider store={store}>
<Provider store={store as any}>
<CounterApp />
</Provider>
, document.getElementById('counter-root'));

View File

@@ -1,5 +1,5 @@
import * as React from 'react';
import { Store } from 'react-chrome-redux';
import { Store } from 'webext-redux';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import OptionsApp from './containers/OptionsApp';
@@ -10,7 +10,7 @@ const store = new Store({
store.ready().then(() => {
ReactDOM.render(
<Provider store={store}>
<Provider store={store as any}>
<OptionsApp />
</Provider>
, document.getElementById('options-root'));

View File

@@ -1,5 +1,5 @@
import * as React from 'react';
import { Store } from 'react-chrome-redux';
import { Store } from 'webext-redux';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import PopupApp from './containers/PopupApp';
@@ -10,7 +10,7 @@ const store = new Store({
store.ready().then(() => {
ReactDOM.render(
<Provider store={store}>
<Provider store={store as any}>
<PopupApp />
</Provider>
, document.getElementById('popup-root'));