-
-
Notifications
You must be signed in to change notification settings - Fork 127
fix(UI): enhancements to the admin dashboard page issue #532 #535
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
base: main
Are you sure you want to change the base?
Conversation
Co-Authored By: Carly Thomas <[email protected]>
> | ||
<option value={10}>10</option> | ||
<option value={20}>20</option> | ||
<option value={30}>30</option> | ||
<option value={40}>40</option> | ||
<option value={50}>50</option> | ||
</select> |
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.
is there a reason why this is hardcoded to 50?
<button | ||
onClick={() => setPageIndex(0)} | ||
disabled={!canPreviousPage} | ||
style={{ | ||
marginLeft: '10px', | ||
marginRight: '10px', | ||
color: '#d1d1d1', | ||
fontSize: '1.5em' | ||
}} | ||
> | ||
|<b><</b> |
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.
I see a lot of repeated styling code in the buttons, would we be able to cut down on this?
|
||
const startEntry = pageIndex * entriesPerPage + 1; | ||
const endEntry = Math.min((pageIndex + 1) * entriesPerPage, rows.length); | ||
const totalEntries = rows.length; |
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.
We should leverage this variable for the pagination feature, we should be able to dynamically create the options for the footer, removing the hardcoded options. We can just generate some mock data to fill in the students in a class so that we can simulate the footer still displaying and working correctly? Let me know your thoughts on this.
left some comments, let me know if I can clarify any of them! |
Checklist:
Update index.md
)Closes #532
Worked in collaboration with @CarlyAThomas
In relation to post.