Add currentUser id to components showing individiual Stripe account.

This commit is contained in:
Vesa Luusua 2019-03-22 01:29:56 +02:00
parent f1b7a2235d
commit 905c3ee129
3 changed files with 12 additions and 0 deletions

View file

@ -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}
/>

View file

@ -87,6 +87,7 @@ export const PayoutPreferencesPageComponent = props => {
createStripeAccountError={createStripeAccountError}
onChange={onPayoutDetailsFormChange}
onSubmit={onPayoutDetailsFormSubmit}
currentUserId={ensuredCurrentUser.id}
/>
) : null;

View file

@ -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]}