-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCC-4193 - Optimize state in bib page #341
base: main
Are you sure you want to change the base?
Changes from 6 commits
2224992
656201d
7fd3e44
21acd12
4753bb2
dfe9af8
0ec3324
b7ec07b
6f9e4ca
cee412c
7ada25f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,8 +38,9 @@ const ItemTableControls = ({ | |
numItemsTotal = 0, | ||
filtersAreApplied = false, | ||
}: ItemTableControlsProps) => { | ||
const viewAllLoadingMessage = | ||
bib.getItemsViewAllLoadingMessage(filtersAreApplied) | ||
const viewAllLoadingMessage = `Loading all ${ | ||
filtersAreApplied ? "matching" : numItemsTotal | ||
} items. This may take a few moments...` | ||
Comment on lines
-41
to
+43
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, i removed it in the Bib model since it's only used here, but can add it back if you'd like greater separation of logic from presentation. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Either approach is ok but I brought it up just as a question. |
||
|
||
return ( | ||
<Box display={{ md: "flex" }} my="xl" justifyContent="space-between"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update this once the merge conflicts have been fixed.