aboutsummaryrefslogtreecommitdiff
path: root/src/hocs
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-04-25 12:46:13 +0300
committerHenry Jameson <me@hjkos.com>2021-04-25 12:47:52 +0300
commit1f5f612163bd1c359212c2e6832806f0dd606977 (patch)
treef7d2fea4a0c7239d88d520b2fad4542cee0ee6eb /src/hocs
parent509ec995743d21b6a5b81634d026460b082f3506 (diff)
remove Vue.component, just export an object. Seems to be working
Diffstat (limited to 'src/hocs')
-rw-r--r--src/hocs/with_load_more/with_load_more.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/hocs/with_load_more/with_load_more.js b/src/hocs/with_load_more/with_load_more.js
index 671b2b6f..537f5720 100644
--- a/src/hocs/with_load_more/with_load_more.js
+++ b/src/hocs/with_load_more/with_load_more.js
@@ -1,4 +1,3 @@
-import Vue from 'vue'
import isEmpty from 'lodash/isEmpty'
import { getComponentProps } from '../../services/component_utils/component_utils'
import './with_load_more.scss'
@@ -23,7 +22,7 @@ const withLoadMore = ({
const originalProps = Object.keys(getComponentProps(WrappedComponent))
const props = originalProps.filter(v => v !== childPropName).concat(additionalPropNames)
- return Vue.component('withLoadMore', {
+ return {
props,
data () {
return {
@@ -106,7 +105,7 @@ const withLoadMore = ({
</div>
)
}
- })
+ }
}
export default withLoadMore