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 payments payouts payment-details components #58

Merged

Conversation

kaiying-stripe
Copy link
Contributor

No description provided.

@kaiying-stripe
Copy link
Contributor Author

may need to merge/publish this after the connect-js published or the tag names are not updated

export const ConnectPaymentDetails = ({
payment,
onClose,
visible = undefined,
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not add visible here! It isn't documented, and we want people to stop using it

useCreateComponent('payment-details');

useAttachAttribute(paymentDetails, 'visible', visible);
React.useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you need this useEffect? Why not use useUpdateWithSetter?

@kaiying-stripe kaiying-stripe force-pushed the kaiying/add-payment-payouts-payment-details-react branch from 9d85a64 to 203203e Compare December 7, 2023 20:26
@kaiying-stripe kaiying-stripe merged commit 84c213e into master Dec 7, 2023
2 checks passed
@kaiying-stripe kaiying-stripe deleted the kaiying/add-payment-payouts-payment-details-react branch December 7, 2023 23:49
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