Upgrade Dependencies (#873)

* Loading placeholder

* Upgrade dependencies, reduce warnings

* 👕

* Remove more unused deps

* Bump RME
This commit is contained in:
Tom Moor
2019-01-21 11:06:44 -08:00
committed by GitHub
parent 4f4e55d120
commit 39a61d8559
10 changed files with 549 additions and 783 deletions

View File

@ -9,7 +9,7 @@ export default class Embed extends React.Component<*> {
return this.props.node.data.get('href');
}
get matches(): ?{ component: *, matches: string[] } {
getMatchResults(): ?{ component: *, matches: string[] } {
const keys = Object.keys(embeds);
for (const key of keys) {
@ -23,7 +23,7 @@ export default class Embed extends React.Component<*> {
}
render() {
const result = this.matches;
const result = this.getMatchResults();
if (!result) return null;
const { attributes, isSelected, children } = this.props;