Commit d797309d authored by Eric Rosenbaum's avatar Eric Rosenbaum

add load more button

parent c928a211
...@@ -2,6 +2,7 @@ import React, {useEffect} from 'react'; ...@@ -2,6 +2,7 @@ import React, {useEffect} from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import {connect} from 'react-redux'; import {connect} from 'react-redux';
import {FormattedMessage} from 'react-intl'; import {FormattedMessage} from 'react-intl';
import classNames from 'classnames';
import ModalInnerContent from '../../../components/modal/base/modal-inner-content.jsx'; import ModalInnerContent from '../../../components/modal/base/modal-inner-content.jsx';
...@@ -16,6 +17,8 @@ const TransferHostSelection = ({ ...@@ -16,6 +17,8 @@ const TransferHostSelection = ({
handleSelected, handleSelected,
handleNext, handleNext,
handleBack, handleBack,
loading,
moreToLoad,
onLoadMore, onLoadMore,
items, items,
hostId, hostId,
...@@ -46,7 +49,7 @@ const TransferHostSelection = ({ ...@@ -46,7 +49,7 @@ const TransferHostSelection = ({
selected={item.id === selectedId} selected={item.id === selectedId}
/>) />)
)} )}
{/* {moreToLoad && {moreToLoad &&
<div className="studio-grid-load-more"> <div className="studio-grid-load-more">
<button <button
className={classNames('button', { className={classNames('button', {
...@@ -57,7 +60,7 @@ const TransferHostSelection = ({ ...@@ -57,7 +60,7 @@ const TransferHostSelection = ({
<FormattedMessage id="general.loadMore" /> <FormattedMessage id="general.loadMore" />
</button> </button>
</div> </div>
} */} }
</div> </div>
</div> </div>
<div <div
...@@ -94,7 +97,8 @@ TransferHostSelection.propTypes = { ...@@ -94,7 +97,8 @@ TransferHostSelection.propTypes = {
}) })
}) })
})), })),
// moreToLoad: PropTypes.bool, loading: PropTypes.bool,
moreToLoad: PropTypes.bool,
onLoadMore: PropTypes.func, onLoadMore: PropTypes.func,
selectedId: PropTypes.number, selectedId: PropTypes.number,
hostId: PropTypes.number hostId: PropTypes.number
......
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