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:
@@ -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() {
|
||||
|
@@ -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
|
||||
|
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user