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

feat: close dialog when esc is pressed #4567

Merged
merged 3 commits into from
Aug 25, 2023
Merged

feat: close dialog when esc is pressed #4567

merged 3 commits into from
Aug 25, 2023

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented Aug 24, 2023

No description provided.

@vercel
Copy link

vercel bot commented Aug 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 25, 2023 10:28am
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 25, 2023 10:28am

@@ -7,20 +7,23 @@ import { TokenType } from 'interfaces/token';

interface IConfirmUserLink {
open: boolean;
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
Copy link
Contributor

Choose a reason for hiding this comment

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

can we do (status: boolean): void function type?

@@ -45,6 +45,7 @@ interface IDialogue {
primaryButtonText?: string;
secondaryButtonText?: string;
open: boolean;
setOpen?: React.Dispatch<React.SetStateAction<boolean>>;
Copy link
Contributor

Choose a reason for hiding this comment

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

again, coupling to React is not necessary for the setOpen contract

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants