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: Generic Delete confirmation Modal #528

Open
wants to merge 20 commits into
base: develop
Choose a base branch
from

Conversation

shivani170
Copy link
Contributor

Description

Generic Delete confirmation Modal

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas

RohitRaj011
RohitRaj011 previously approved these changes Jan 23, 2025
)

const renderDeleteModal = () => (
<ConfirmationModal
Copy link
Contributor

@RohitRaj011 RohitRaj011 Jan 24, 2025

Choose a reason for hiding this comment

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

return this directly instead of function

@@ -77,3 +78,41 @@ export type ConfirmationModalProps<isConfig extends boolean = false> = {
: {})

export type ConfirmationModalBodyProps = Omit<ConfirmationModalProps, 'showConfirmationModal'>

export type DeleteComponentModalProps = {
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: can add ts-doc

@shivani170 shivani170 changed the title feat Generic Delete confirmation Modal feat: Generic Delete confirmation Modal Jan 24, 2025
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