Skip to content
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

Fix: Prevent page refresh when opening the Create Campaign Modal #7608

Merged

Conversation

kjohnson
Copy link
Member

@kjohnson kjohnson commented Nov 6, 2024

Resolves GIVE-1342

Description

This PR prevents a page refresh when clicking the Create Campaign button in the Campaign List Table.

Affects

The state for the Create Campaign Modal has been lifted to the <CampaignsListTable /> parent component so that it can be shared by the <ListTableBlankSlate /> and the <CreateCampaignModal /> components.

Visuals

Peek 2024-11-05 22-19

Testing Instructions

With no campaigns created, from the campaign list table click the "create campaign" button within the table's empty state (as opposed to the header).

Pre-review Checklist

  • Acceptance criteria satisfied and marked in related issue
  • Relevant @unreleased tags included in DocBlocks
  • Includes unit tests
  • Reviewed by the designer (if follows a design)
  • Self Review of code and UX completed

@kjohnson kjohnson marked this pull request as ready for review November 6, 2024 03:26
Copy link
Member

@alaca alaca left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@kjohnson
Copy link
Member Author

kjohnson commented Nov 7, 2024

Copy link
Member

@rickalday rickalday left a comment

Choose a reason for hiding this comment

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

Passed manual QA tests.

@kjohnson kjohnson merged commit bcc93c0 into epic/campaigns Nov 8, 2024
20 checks passed
@kjohnson kjohnson deleted the fix/campaign-list-table-create-button-GIVE-1342 branch November 8, 2024 18:32
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.

4 participants