Skip to content

Enhancement show total items #221

Closed
wants to merge 5 commits into from
Closed

Conversation

wrigh393
Copy link
Collaborator

Closes #152

@wrigh393 wrigh393 requested a review from campb303 July 15, 2021 13:28
@wrigh393 wrigh393 linked an issue Jul 15, 2021 that may be closed by this pull request
Copy link
Collaborator

@campb303 campb303 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues with the code at this point. Per #152 (comment) this architecture will e replaced with a new approach.

@@ -98,6 +98,11 @@ export default function ItemTable({ data, rowCanBeSelected, loading }) {
);
const { getTableProps, getTableBodyProps, headerGroups, rows, prepareRow, } = tableInstance;

//Sets filteredItems length when items are filtered from the table/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add space between comment marker and comment content.

- //Sets...
+ // Sets...

setValue={setSelectedQueues}
/>
</Box>
<ItemCounter filteredItems={filteredItems} totalItems={items.length} />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be better to use the autocalculated value from the react-table instance inside ItemTable than the derived value from here to insure the count is kept in sync with what the UI reflects.

@campb303
Copy link
Collaborator

Closing to be replaced with another branch.

@campb303 campb303 closed this Jul 30, 2021
@campb303 campb303 deleted the enhancement-show-total-items branch July 30, 2021 17:01
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show total loaded and total filtered items in ItemTable
2 participants