React 16 (#7174)
* Update packages to use React 16 * Rollback to react-router v3 * Use component instead of pure one * Remove warning about mobx * Make webpack load css from @parity/ui * Update enzyme to support react16 * Fix lint * Use @parity/ui v3 * Update refs of plugin-signer-* deps * Exclude plugin-signer-* from babel processing * Reupdate refs to old method * Update refs again
This commit is contained in:
committed by
Jaco Greeff
parent
7663451116
commit
2a7b2c7e32
@@ -23,7 +23,6 @@
|
||||
opacity: 0;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
background: white;
|
||||
}
|
||||
|
||||
.full {
|
||||
|
||||
@@ -15,13 +15,13 @@
|
||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import { observer } from 'mobx-react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
|
||||
import RequestGroups from './RequestGroups';
|
||||
import Store from './store';
|
||||
import styles from './dappRequests.css';
|
||||
|
||||
class DappRequests extends PureComponent {
|
||||
class DappRequests extends Component {
|
||||
store = Store.get();
|
||||
|
||||
handleApproveRequestGroup = requestIds => {
|
||||
|
||||
@@ -40,12 +40,17 @@ injectTapEventPlugin();
|
||||
|
||||
window.React = window.React || React;
|
||||
|
||||
// FIXME
|
||||
// Not working with React 16
|
||||
// https://reactjs.org/docs/perf.html
|
||||
/*
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
// Expose the React Performance Tools on the`window` object
|
||||
const Perf = require('react-addons-perf');
|
||||
|
||||
window.Perf = Perf;
|
||||
}
|
||||
*/
|
||||
|
||||
const AUTH_HASH = '#/auth?';
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import mobx from 'mobx';
|
||||
import * as mobx from 'mobx';
|
||||
import flatten from 'lodash.flatten';
|
||||
|
||||
import { sha3 } from '@parity/api/lib/util/sha3';
|
||||
|
||||
Reference in New Issue
Block a user