fix(donate): update component names

This commit is contained in:
Mrugesh Mohapatra
2019-02-14 14:26:56 +05:30
committed by Stuart Taylor
parent 8fbd26ff33
commit 6c41dd2b7c
2 changed files with 8 additions and 7 deletions

View File

@ -47,7 +47,7 @@ const paypalOneTimeDonation = {
defaultValue: 'Make a one-time donation' defaultValue: 'Make a one-time donation'
}; };
class IndexPage extends Component { class DonateOtherPage extends Component {
renderForm(item) { renderForm(item) {
return ( return (
@ -193,6 +193,6 @@ class IndexPage extends Component {
} }
} }
IndexPage.displayName = 'IndexPage'; DonateOtherPage.displayName = 'DonateOtherPage';
export default IndexPage; export default DonateOtherPage;

View File

@ -3,6 +3,7 @@ import React, { Component, Fragment } from 'react';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { StripeProvider, Elements } from 'react-stripe-elements'; import { StripeProvider, Elements } from 'react-stripe-elements';
import { Row, Col } from '@freecodecamp/react-bootstrap'; import { Row, Col } from '@freecodecamp/react-bootstrap';
import { Link } from 'gatsby';
import { stripePublicKey } from '../../config/env.json'; import { stripePublicKey } from '../../config/env.json';
@ -13,7 +14,7 @@ import PoweredByStripe from '../components/Donation/components/poweredByStripe';
import './index.css'; import './index.css';
class IndexPage extends Component { class DonatePage extends Component {
constructor(...props) { constructor(...props) {
super(...props); super(...props);
this.state = { this.state = {
@ -72,7 +73,7 @@ class IndexPage extends Component {
</Elements> </Elements>
</StripeProvider> </StripeProvider>
<div className='text-center'> <div className='text-center'>
<a href='/donate-other'>Other ways to donate.</a> <Link to='/donate-other'>Other ways to donate.</Link>
<Spacer /> <Spacer />
<PoweredByStripe /> <PoweredByStripe />
</div> </div>
@ -84,6 +85,6 @@ class IndexPage extends Component {
} }
} }
IndexPage.displayName = 'IndexPage'; DonatePage.displayName = 'DonatePage';
export default IndexPage; export default DonatePage;