Commit bb428a30 authored by Eric Rosenbaum's avatar Eric Rosenbaum

put arrow fn wrapper for loadManagers into connect

parent 0d670b10
...@@ -56,7 +56,7 @@ const TransferHostSelection = ({ ...@@ -56,7 +56,7 @@ const TransferHostSelection = ({
className={classNames('button', { className={classNames('button', {
'mod-mutating': loading 'mod-mutating': loading
})} })}
onClick={() => onLoadMore()} // eslint-disable-line react/jsx-no-bind onClick={onLoadMore}
> >
<FormattedMessage id="general.loadMore" /> <FormattedMessage id="general.loadMore" />
</button> </button>
...@@ -111,6 +111,6 @@ export default connect( ...@@ -111,6 +111,6 @@ export default connect(
...managers.selector(state) ...managers.selector(state)
}), }),
{ {
onLoadMore: loadManagers onLoadMore: () => loadManagers()
} }
)(TransferHostSelection); )(TransferHostSelection);
...@@ -88,7 +88,7 @@ const StudioManagers = ({ ...@@ -88,7 +88,7 @@ const StudioManagers = ({
<h3><FormattedMessage id="studio.sectionLoadError.managersHeadline" /></h3> <h3><FormattedMessage id="studio.sectionLoadError.managersHeadline" /></h3>
<button <button
className="button" className="button"
onClick={() => onLoadMore()} // eslint-disable-line react/jsx-no-bind onClick={onLoadMore}
> >
<FormattedMessage id="studio.sectionLoadError.tryAgain" /> <FormattedMessage id="studio.sectionLoadError.tryAgain" />
</button> </button>
...@@ -108,7 +108,7 @@ const StudioManagers = ({ ...@@ -108,7 +108,7 @@ const StudioManagers = ({
className={classNames('button', { className={classNames('button', {
'mod-mutating': loading 'mod-mutating': loading
})} })}
onClick={() => onLoadMore()} // eslint-disable-line react/jsx-no-bind onClick={onLoadMore}
> >
<FormattedMessage id="general.loadMore" /> <FormattedMessage id="general.loadMore" />
</button> </button>
...@@ -151,6 +151,6 @@ export default connect( ...@@ -151,6 +151,6 @@ export default connect(
...managers.selector(state) ...managers.selector(state)
}), }),
{ {
onLoadMore: loadManagers onLoadMore: () => loadManagers()
} }
)(StudioManagers); )(StudioManagers);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment