-
Notifications
You must be signed in to change notification settings - Fork 6
story 2310: added use of query parameters in ReviewPeriods.jsx #2325
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
Conversation
| import UnarchiveIcon from '@mui/icons-material/Unarchive'; | ||
| import WorkIcon from '@mui/icons-material/Work'; | ||
|
|
||
| import Box from '@mui/material/Box'; |
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 combined these imports into one.
|
|
||
| useQueryParameters([ | ||
| { | ||
| name: 'add', |
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.
The only state I see that we can track with query parameters on this page is whether the "ADD REVIEW PERIOD" button was clicked.
| periodId => { | ||
| if (mode === 'self') { | ||
| if ( | ||
| selectReviewPeriod(state, periodId)?.reviewStatus === ReviewStatus.OPEN |
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.
Prettier did this.
| key={`period-lit-${id}`} | ||
| onClick={() => onPeriodClick(id)} | ||
| primary={ | ||
| name + (reviewStatus === ReviewStatus.OPEN ? ' - Open' : '') |
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.
Prettier did this.
jackkeller
left a comment
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.
Approved! 🚢
No description provided.