Skip to content

Instantly share code, notes, and snippets.

@bryzettler
Created October 15, 2018 14:30
Show Gist options
  • Save bryzettler/45c29243a9fab7244d12a710060970d9 to your computer and use it in GitHub Desktop.
Save bryzettler/45c29243a9fab7244d12a710060970d9 to your computer and use it in GitHub Desktop.
{(spas.length >= 0) && (
<ModelList
inverted
infiniteScroll
onInfiniteLoad={this.handleFetchNextPageOfSpas}
shouldInfiniteLoad={!onLastPaginationPage}
onRowClick={this.handleRowClick}
modelType="Spas"
models={spas}
tableRowNumbers
sortable
singleLined
fixed
tableHeaders={[
{ header: 'Serial Number' },
{ header: 'Brand' },
{ header: 'Model' },
{ header: 'Model Number' },
{ header: 'Status' },
{ header: 'Owners Email' },
]}
tableCells={[
{ modelKey: 'id' },
{ modelKey: 'brand' },
{ modelKey: 'model' },
{ modelKey: 'modelNumber' },
{ modelKey: 'selfTest.status' },
{ modelKey: 'owner.email' },
]}
/>
)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment