forked from rage/java-programming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfirmEmail.js
More file actions
58 lines (48 loc) · 1.25 KB
/
Copy pathConfirmEmail.js
File metadata and controls
58 lines (48 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import React from "react"
import { Link } from "gatsby"
import { withTranslation } from "react-i18next"
import EmailExample from "../../images/email-example.png"
import styled from "styled-components"
import withSimpleErrorBoundary from "../../util/withSimpleErrorBoundary"
const InfoBox = styled.div`
margin-bottom: 2rem;
`
const FormContainer = styled.div`
height: 100%;
margin-top: 2rem;
`
const StyledImage = styled.img`
width: 100%;
padding: 1rem 0;
`
class ConfirmEmail extends React.Component {
onClick = async (e) => {
e.preventDefault()
}
state = {
email: undefined,
password: undefined,
submitting: false,
error: false,
}
render() {
return (
<FormContainer>
<h1>{this.props.t("welcomeToCourse")}</h1>
<InfoBox>
<p>{this.props.t("emailSent")} </p>
<p>{this.props.t("emailExample")}</p>
<StyledImage
src={EmailExample}
alt={this.props.t("emaiLExampleAria")}
/>
</InfoBox>
<p>
{this.props.t("nowContinue")}{" "}
<Link to="/osa-1">{this.props.t("toMaterial")}</Link>.
</p>
</FormContainer>
)
}
}
export default withTranslation("user")(withSimpleErrorBoundary(ConfirmEmail))