1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-10-12 20:15:10 +02:00

upgrade packages for preact x

This commit is contained in:
Kushagra Gour
2019-07-15 21:50:41 +05:30
parent a162c5e555
commit 60e1de8203
7 changed files with 24072 additions and 11809 deletions

View File

@@ -1,7 +1,7 @@
import { h, Component } from 'preact';
import { Inspector, chromeDark } from 'react-inspector';
import { Trans } from '@lingui/macro';
import { PureComponent } from 'preact-compat';
import { PureComponent } from 'preact/compat';
class LogRow extends Component {
shouldComponentUpdate() {

View File

@@ -1,5 +1,5 @@
import { h } from 'preact';
import { PureComponent } from 'preact-compat';
import { PureComponent } from 'preact/compat';
/**
* This component udpates not through props or state, but by some parent

View File

@@ -38,7 +38,7 @@ export class SplitPane extends Component {
options.gutterSize = 6;
/* eslint-disable new-cap */
this.splitInstance = Split([...this.parent.children], options);
this.splitInstance = Split(Array.from(this.parent.children), options);
/* eslint-enable new-cap */