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 missing field in interface of <DeleteButton> props #5998

Merged
merged 1 commit into from Mar 5, 2021

Conversation

DjebbZ
Copy link
Contributor

@DjebbZ DjebbZ commented Mar 4, 2021

<DeleteButton>, when passed undoable={false}, calls its child <DeleteWithConfirmButton> and passes it the props.

Problem: <DeleteButton> Props inferface is missing (at least) 2 props that <DeleteWithConfirmButton> accepts, namely confirmTitle and confirmContent. This prevents code from typechecking.

Please find an quick fix in this PR.

`<DeleteButton>`, when passed `undoable={false}`, calls its child `<DeleteWithConfirmButton>` and passes it the props.

Problem: `<DeleteButton>` `Props` inferface is missing (at least) 2 props that `<DeleteWithConfirmButton>` accepts, namely `confirmTitle` and `confirmContent`. This prevents code from typechecking.

Please find an quick fix in this PR.
Copy link
Contributor

@djhi djhi left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

None yet

2 participants