Skip to content

Fix the confimation dialog box error #159

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AQIB-NAWAB
Copy link
Contributor

What kind of change does this PR introduce?
Bug Fix

Issue Number:

Screenshots/videos:

Screencast.from.2025-03-26.23-33-51.webm

Summary
Resolve the issue of confirmation dialogues remains open when we close the reset ones.

Does this PR introduce a breaking change?
No

@AQIB-NAWAB AQIB-NAWAB changed the title Fix the dialog box error Fix the confimation dialog box error Mar 26, 2025
@AQIB-NAWAB
Copy link
Contributor Author

@JeelRajodiya please review the PR

@JeelRajodiya JeelRajodiya requested a review from Copilot March 27, 2025 11:37
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug where confirmation dialogues remained open after resetting progress. Key changes include removing unused Popover components, replacing the existing state with a dedicated confirmationDialogOpen state, and updating the localStorage removal logic.

Files not reviewed (1)
  • app/components/NavBarMenus/NavBar.module.css: Language not supported
Comments suppressed due to low confidence (2)

app/components/NavBarMenus/NavBarMenus.tsx:22

  • [nitpick] The function name 'NavBarMenu' does not match the file name 'NavBarMenus.tsx'. Consider renaming the function to 'NavBarMenus' for consistency.
export default function NavBarMenu() {

app/components/NavBarMenus/NavBarMenus.tsx:72

  • [nitpick] The check for 'progress' in localStorage is redundant because localStorage.removeItem can be safely called even if the key does not exist. Removing the if statement would simplify the code.
if (localStorage.getItem("progress")) {

Copy link
Member

@JeelRajodiya JeelRajodiya left a comment

Choose a reason for hiding this comment

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

The issue is still present, please resolve and refer to my other review comment.
input

Copy link
Member

Choose a reason for hiding this comment

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

Why are we creating a new css file? please do not modify the designs of the components. only include the relevant changes.

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.

Bug : The Confirmation dialog remains open if close modal
2 participants