mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 12:43:11 +10:00
Remove Stripe ToS from SignupForm
This commit is contained in:
parent
64303b37e7
commit
860f41868e
2 changed files with 1 additions and 34 deletions
|
|
@ -2,31 +2,12 @@ import React, { Component, PropTypes } from 'react';
|
|||
import { compose } from 'redux';
|
||||
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
|
||||
import { Field, reduxForm, propTypes as formPropTypes } from 'redux-form';
|
||||
import { Button, ExternalLink } from '../../components';
|
||||
import { Button } from '../../components';
|
||||
import * as validators from '../../util/validators';
|
||||
import { enhancedField } from '../../util/forms';
|
||||
|
||||
import css from './SignupForm.css';
|
||||
|
||||
// Render translated application and Stripe terms of service with
|
||||
// links to legal texts.
|
||||
//
|
||||
// See: https://stripe.com/docs/connect/updating-accounts#tos-acceptance
|
||||
const Tos = () => (
|
||||
<p>
|
||||
<FormattedMessage
|
||||
id="SignupForm.termsOfService"
|
||||
values={{
|
||||
stripeConnectedAccountAgreementLink: (
|
||||
<ExternalLink href="https://stripe.com/connect-account/legal">
|
||||
<FormattedMessage id="SignupForm.stripeConnectedAccountAgreementLinkText" />
|
||||
</ExternalLink>
|
||||
),
|
||||
}}
|
||||
/>
|
||||
</p>
|
||||
);
|
||||
|
||||
class SignupFormComponent extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
|
@ -119,7 +100,6 @@ class SignupFormComponent extends Component {
|
|||
/>
|
||||
</div>
|
||||
<div>
|
||||
<Tos />
|
||||
<Button className={css.button} type="submit" disabled={submitDisabled}>
|
||||
<FormattedMessage id="SignupForm.signUp" />
|
||||
</Button>
|
||||
|
|
|
|||
|
|
@ -84,19 +84,6 @@ exports[`SignupForm matches snapshot 1`] = `
|
|||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<p>
|
||||
<span>
|
||||
By confirming I accept the terms and conditions and the
|
||||
<a
|
||||
href="https://stripe.com/connect-account/legal"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank">
|
||||
<span>
|
||||
Stripe Connected Account Agreement
|
||||
</span>
|
||||
</a>
|
||||
</span>
|
||||
</p>
|
||||
<button
|
||||
className=""
|
||||
disabled={true}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue