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

Add a warning dialog before reset action #204

Merged
merged 1 commit into from
Dec 24, 2023

Conversation

netalondon
Copy link
Collaborator

No description provided.

settings.close();
<main>
<div style={{ margin: "10px" }}>
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need for {'string'} here, just the plain text node is fine.

onClick={(e) => {
e.preventDefault();
settings.close();
<main>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Generally, the structure for article > main can also have an article > footer and article > header. So in this case, I think you can use more structure to get the styling you want

<article>
  <header>Confirm Reset</header>
  <main>The "reset files" ... </main>
  <footer classname="flex">
    <button>Confirm</button>
    <button>Cancel</button>
  </footer>
</article>

@DavidSouther DavidSouther merged commit e11a5ce into nand2tetris:main Dec 24, 2023
1 check passed
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.

2 participants