New: Optional Search Button on Artist Index views

This commit is contained in:
Qstick 2018-11-10 23:08:31 -05:00
parent 88c58e2529
commit 0c1f9e6c8d
18 changed files with 310 additions and 24 deletions

View file

@ -109,6 +109,8 @@ class TableOptionsModal extends Component {
isOpen,
columns,
canModifyColumns,
optionsComponent: OptionsComponent,
onTableOptionChange,
onModalClose
} = this.props;
@ -152,6 +154,13 @@ class TableOptionsModal extends Component {
</FormGroup>
}
{
!!OptionsComponent &&
<OptionsComponent
onTableOptionChange={onTableOptionChange}
/>
}
{
canModifyColumns &&
<FormGroup>
@ -231,6 +240,7 @@ TableOptionsModal.propTypes = {
columns: PropTypes.arrayOf(PropTypes.object).isRequired,
pageSize: PropTypes.number,
canModifyColumns: PropTypes.bool.isRequired,
optionsComponent: PropTypes.func.isRequired,
onTableOptionChange: PropTypes.func.isRequired,
onModalClose: PropTypes.func.isRequired
};