diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-12-13 10:21:29 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2019-12-13 10:21:29 +0000 |
| commit | 766a674a488c68a11be925639d7fd2a9242df9ae (patch) | |
| tree | 7b4c8ecb89edebd639ced99826001855e52e5c0a /src | |
| parent | 9789123b1c5e308445b24dd9fdddd9ea9bf7ca90 (diff) | |
| parent | b973ee5915ca9a2c79d9523286f42aee4b1a7db7 (diff) | |
Merge branch 'upgrade-babel' into 'develop'
Upgrade babel to v7
Closes #733
See merge request pleroma/pleroma-fe!1029
Diffstat (limited to 'src')
| -rw-r--r-- | src/hocs/with_load_more/with_load_more.js | 4 | ||||
| -rw-r--r-- | src/hocs/with_subscription/with_subscription.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/hocs/with_load_more/with_load_more.js b/src/hocs/with_load_more/with_load_more.js index 1e1b2a74..6142f513 100644 --- a/src/hocs/with_load_more/with_load_more.js +++ b/src/hocs/with_load_more/with_load_more.js @@ -65,7 +65,7 @@ const withLoadMore = ({ } } }, - render (createElement) { + render (h) { const props = { props: { ...this.$props, @@ -74,7 +74,7 @@ const withLoadMore = ({ on: this.$listeners, scopedSlots: this.$scopedSlots } - const children = Object.entries(this.$slots).map(([key, value]) => createElement('template', { slot: key }, value)) + const children = Object.entries(this.$slots).map(([key, value]) => h('template', { slot: key }, value)) return ( <div class="with-load-more"> <WrappedComponent {...props}> diff --git a/src/hocs/with_subscription/with_subscription.js b/src/hocs/with_subscription/with_subscription.js index 91fc4cca..1775adcb 100644 --- a/src/hocs/with_subscription/with_subscription.js +++ b/src/hocs/with_subscription/with_subscription.js @@ -49,7 +49,7 @@ const withSubscription = ({ } } }, - render (createElement) { + render (h) { if (!this.error && !this.loading) { const props = { props: { @@ -59,7 +59,7 @@ const withSubscription = ({ on: this.$listeners, scopedSlots: this.$scopedSlots } - const children = Object.entries(this.$slots).map(([key, value]) => createElement('template', { slot: key }, value)) + const children = Object.entries(this.$slots).map(([key, value]) => h('template', { slot: key }, value)) return ( <div class="with-subscription"> <WrappedComponent {...props}> |
