mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Add currentUser id to components showing individiual Stripe account.
This commit is contained in:
parent
f1b7a2235d
commit
905c3ee129
3 changed files with 12 additions and 0 deletions
|
|
@ -288,6 +288,7 @@ class EditListingWizard extends Component {
|
|||
className={css.payoutDetails}
|
||||
inProgress={fetchInProgress}
|
||||
createStripeAccountError={errors ? errors.createStripeAccountError : null}
|
||||
currentUserId={this.props.currentUser.id}
|
||||
onChange={onPayoutDetailsFormChange}
|
||||
onSubmit={this.handlePayoutSubmit}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -87,6 +87,7 @@ export const PayoutPreferencesPageComponent = props => {
|
|||
createStripeAccountError={createStripeAccountError}
|
||||
onChange={onPayoutDetailsFormChange}
|
||||
onSubmit={onPayoutDetailsFormSubmit}
|
||||
currentUserId={ensuredCurrentUser.id}
|
||||
/>
|
||||
) : null;
|
||||
|
||||
|
|
|
|||
|
|
@ -170,6 +170,11 @@ exports[`PayoutPreferencesPage matches snapshot with Stripe not connected 1`] =
|
|||
</p>
|
||||
<InjectIntl(PayoutDetailsFormComponent)
|
||||
createStripeAccountError={null}
|
||||
currentUserId={
|
||||
UUID {
|
||||
"uuid": "stripe-not-connected",
|
||||
}
|
||||
}
|
||||
disabled={false}
|
||||
inProgress={false}
|
||||
onChange={[Function]}
|
||||
|
|
@ -269,6 +274,11 @@ exports[`PayoutPreferencesPage matches snapshot with details submitted 1`] = `
|
|||
</p>
|
||||
<InjectIntl(PayoutDetailsFormComponent)
|
||||
createStripeAccountError={null}
|
||||
currentUserId={
|
||||
UUID {
|
||||
"uuid": "stripe-connected",
|
||||
}
|
||||
}
|
||||
disabled={true}
|
||||
inProgress={false}
|
||||
onChange={[Function]}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue