Skip to content

Commit 9270bb6

Browse files
author
Ethan Jon
committed
added facebook pixel conversion
1 parent e41693d commit 9270bb6

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

react/components/modals/interview/thank-you.js

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,40 @@
11
// @flow
22

3-
import React from 'react'
3+
import React, {PureComponent} from 'react'
44
import Link from 'next/link'
55

66
import createModal from '../../../helpers/create-modal'
77
import {getUrlObj} from '../../../helpers/post-data'
88

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+
}
1215

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>
1720

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+
}
2838

2939
export default createModal(ThankYou, {
3040
hideCloseButton: true,

0 commit comments

Comments
 (0)