resolve ids conflict
This commit is contained in:
parent
43f62247c2
commit
808f6ebcbc
|
@ -121,7 +121,7 @@ export default function Footer() {
|
||||||
<div className="footer-column">
|
<div className="footer-column">
|
||||||
<Fade duration={700} distance="40px" bottom>
|
<Fade duration={700} distance="40px" bottom>
|
||||||
<h2>Stay up to date with Skynet updates</h2>
|
<h2>Stay up to date with Skynet updates</h2>
|
||||||
<Mailing id="check2" light />
|
<Mailing id="mailing-bottom" light />
|
||||||
</Fade>
|
</Fade>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -34,7 +34,7 @@ export default class HomeStay extends Component {
|
||||||
</Fade>
|
</Fade>
|
||||||
</header>
|
</header>
|
||||||
<Fade duration={700} distance="40px" bottom>
|
<Fade duration={700} distance="40px" bottom>
|
||||||
<Mailing id="check1" />
|
<Mailing id="mailing-top" />
|
||||||
</Fade>
|
</Fade>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,9 @@ const url = "https://tech.us11.list-manage.com/subscribe/post?u=5df238d9e852f980
|
||||||
const CustomForm = ({ status, message, onValidated, light, id }) => {
|
const CustomForm = ({ status, message, onValidated, light, id }) => {
|
||||||
let email, user;
|
let email, user;
|
||||||
|
|
||||||
|
const checkboxId = `${id}-check`;
|
||||||
|
const submitId = `${id}-submit`;
|
||||||
|
|
||||||
const submit = () => {
|
const submit = () => {
|
||||||
if ((email, user, email.value.indexOf("@") > -1)) {
|
if ((email, user, email.value.indexOf("@") > -1)) {
|
||||||
onValidated({
|
onValidated({
|
||||||
|
@ -25,13 +28,13 @@ const CustomForm = ({ status, message, onValidated, light, id }) => {
|
||||||
type="email"
|
type="email"
|
||||||
placeholder="Email Address"
|
placeholder="Email Address"
|
||||||
validate="true"
|
validate="true"
|
||||||
aria-labelledby="newsletter-subscribe"
|
aria-labelledby={submitId}
|
||||||
/>
|
/>
|
||||||
<div className="home-form-stay-existing">
|
<div className="home-form-stay-existing">
|
||||||
<input ref={node => (user = node)} type="checkbox" id={id} />
|
<input ref={node => (user = node)} type="checkbox" id={checkboxId} />
|
||||||
<label htmlFor={id}>I have previous experience using Sia</label>
|
<label htmlFor={checkboxId}>I have previous experience using Sia</label>
|
||||||
</div>
|
</div>
|
||||||
<button className="button" onClick={submit} id="newsletter-subscribe">
|
<button className="button" onClick={submit} id={submitId}>
|
||||||
Get Updates
|
Get Updates
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
Reference in New Issue