Skip to content

Conversation

@mvolkmann
Copy link
Collaborator

No description provided.

import UnarchiveIcon from '@mui/icons-material/Unarchive';
import WorkIcon from '@mui/icons-material/Work';

import Box from '@mui/material/Box';
Copy link
Collaborator Author

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',
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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' : '')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Prettier did this.

Copy link
Collaborator

@jackkeller jackkeller left a comment

Choose a reason for hiding this comment

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

Approved! 🚢

@mvolkmann mvolkmann changed the title added use of query parameters in ReviewPeriods.jsx story 2310: added use of query parameters in ReviewPeriods.jsx May 3, 2024
@mvolkmann mvolkmann merged commit 8bb827a into develop May 6, 2024
@mkimberlin mkimberlin deleted the feature-2310-reviews-query-parameters branch August 27, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants