|
1 | 1 | // @flow |
2 | 2 |
|
3 | | -import React from 'react' |
| 3 | +import React, {PureComponent} from 'react' |
4 | 4 | import Link from 'next/link' |
5 | 5 |
|
6 | 6 | import createModal from '../../../helpers/create-modal' |
7 | 7 | import {getUrlObj} from '../../../helpers/post-data' |
8 | 8 |
|
9 | | -const ThankYou = () => ( |
10 | | - <div className='p3 bg-darken-0'> |
11 | | - <div className='h2 bold line-height-3 mb2'>{'You\'re good to go!'}</div> |
| 9 | +class ThankYou extends PureComponent { |
| 10 | + componentDidMount () { |
| 11 | + if (window.fbq) { |
| 12 | + window.fbq('track', 'CompleteRegistration') |
| 13 | + } |
| 14 | + } |
12 | 15 |
|
13 | | - <p>{'Thank you so much for your submission. No further action is required from you at this point.'}</p> |
14 | | - <p>{'We will review and lightly edit your submission soon. We may contact you to gather additional information.'}</p> |
15 | | - <p>{'Once your intro is published and ready to be shared, we\'ll send you an email.'}</p> |
16 | | - <p>{'Now, would you be so kind as to spread the word and suggest someone you know?'}</p> |
| 16 | + render () { |
| 17 | + return ( |
| 18 | + <div className='p3 bg-darken-0'> |
| 19 | + <div className='h2 bold line-height-3 mb2'>{'You\'re good to go!'}</div> |
17 | 20 |
|
18 | | - <div className='mt2'> |
19 | | - <Link |
20 | | - as='/suggest' |
21 | | - href={getUrlObj({slug: 'suggest', type: 'page'})} |
22 | | - > |
23 | | - <a className='btn btn-primary'>{'Suggest someone'}</a> |
24 | | - </Link> |
25 | | - </div> |
26 | | - </div> |
27 | | -) |
| 21 | + <p>{'Thank you so much for your submission. No further action is required from you at this point.'}</p> |
| 22 | + <p>{'We will review and lightly edit your submission soon. We may contact you to gather additional information.'}</p> |
| 23 | + <p>{'Once your intro is published and ready to be shared, we\'ll send you an email.'}</p> |
| 24 | + <p>{'Now, would you be so kind as to spread the word and suggest someone you know?'}</p> |
| 25 | + |
| 26 | + <div className='mt2'> |
| 27 | + <Link |
| 28 | + as='/suggest' |
| 29 | + href={getUrlObj({slug: 'suggest', type: 'page'})} |
| 30 | + > |
| 31 | + <a className='btn btn-primary'>{'Suggest someone'}</a> |
| 32 | + </Link> |
| 33 | + </div> |
| 34 | + </div> |
| 35 | + ) |
| 36 | + } |
| 37 | +} |
28 | 38 |
|
29 | 39 | export default createModal(ThankYou, { |
30 | 40 | hideCloseButton: true, |
|
0 commit comments