mirror of
https://github.com/zhigang1992/wallet.git
synced 2026-04-28 20:55:30 +08:00
typescript fixes - working now
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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'));
|
||||
|
||||
@@ -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'));
|
||||
|
||||
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user