-
Notifications
You must be signed in to change notification settings - Fork 9
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 App components #102
Add App components #102
Conversation
@@ -49,7 +49,7 @@ | |||
"@babel/preset-react": "7.18.6", | |||
"@rollup/plugin-json": "^6.0.0", | |||
"@rollup/plugin-replace": "^2.3.1", | |||
"@stripe/connect-js": "3.3.11-beta-1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also bump the peerDependencies
below to this same number?
src/Components.tsx
Outdated
onAppInstallStateChange, | ||
}: { | ||
app: string; | ||
onAppInstallStateFetch: () => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is missing the actual values to callback right (as in the state of the installed app)?
onAppInstallStateChange, | ||
}: { | ||
app: string; | ||
onAppInstallStateFetch?: (({appId, state}: InstallState) => void) | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need the | undefined
here, since the property is already optional
API Review: https://docs.google.com/document/d/1WSZBpaLvJLDmhaA3VMTpV3cYvaZ920gWDBNX0dKMXrA/edit#heading=h.nbrl5773k5jx
connect-js changes: stripe/connect-js#137
Tested on connect-test