Skip to content

Commit 9844112

Browse files
committed
clarifying t&c for location on l&e
1 parent 0293e68 commit 9844112

File tree

3 files changed

+6
-100
lines changed

3 files changed

+6
-100
lines changed

src/hooks/useFormEmailValidator.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/hooks/useFormListener.ts

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/pages/lp/learn-and-earn-jwt.tsx

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,8 @@
22
import React from 'react';
33
import Layout from '@theme/Layout';
44
import LandingPageWrapper from '../../components/LandingPageWrapper';
5-
import useFormEmailValidator from '../../hooks/useFormEmailValidator';
65

76
export default function LearnAndEarnJWT() {
8-
const form = React.createRef<HTMLFormElement>();
9-
const warn = React.createRef<HTMLSpanElement>();
10-
11-
useFormEmailValidator({
12-
form,
13-
invalid() {
14-
if (!warn.current) {
15-
return;
16-
}
17-
18-
warn.current.style.display = 'block';
19-
},
20-
valid() {
21-
if (!warn.current) {
22-
return;
23-
}
24-
25-
warn.current.style.display = 'none';
26-
},
27-
});
28-
297
return (
308
<LandingPageWrapper>
319
{/* @ts-ignore */}
@@ -51,9 +29,6 @@ export default function LearnAndEarnJWT() {
5129
target="_blank">
5230
this e-book.
5331
</a>
54-
<strong>
55-
Only business emails (no gmail, yahoo, etc.) will be accepted.
56-
</strong>
5732
</p>
5833
</div>
5934
<div
@@ -62,10 +37,13 @@ export default function LearnAndEarnJWT() {
6237
justifyContent: 'center',
6338
alignItems: 'center',
6439
flexDirection: 'column',
40+
margin: '1rem',
6541
}}>
66-
<form ref={form} className="m-form" id="mktoForm_4161"></form>
67-
<strong ref={warn} style={{ display: 'none' }}>
68-
Only business emails (no gmail, yahoo, etc.) will be accepted.
42+
<form className="m-form" id="mktoForm_4161"></form>
43+
<strong style={{ maxWidth: '30rem' }}>
44+
To receive your gift card, you must be a legal resident of any of
45+
the 50 United States and D.C., Canada, Germany, Ireland, France,
46+
and the United Kingdom;
6947
</strong>
7048
</div>
7149
</article>

0 commit comments

Comments
 (0)