32 |
33 |
Verify your email address
34 |
35 |
Please check your mailbox {user.email}. A verification email is waiting for you.
36 |
37 | {!sent ?
38 |
Did not receive the email? Send again
:
39 |
Verification email sent!
40 | }
41 |
42 |
43 | )
44 | }
45 |
46 | }
47 |
48 | const mapStateToProps = (state) => ({
49 | user: state.auth.user
50 | })
51 |
52 | const mapDispatchToProps = (dispatch) => (
53 | bindActionCreators({
54 | sendVerificationEmail
55 | }, dispatch)
56 | )
57 |
58 | export default connect(mapStateToProps, mapDispatchToProps)(VerifyEmail)
59 |
60 |
--------------------------------------------------------------------------------
/src/app/components/auth/VerifyEmail.scss:
--------------------------------------------------------------------------------
1 | @import '../common/variables';
2 |
3 | .verify-email {
4 |
5 | max-width: 420px;
6 | margin: 0 auto;
7 | border-radius: 5px;
8 | border: 1px solid #eee;
9 | background: white;
10 |
11 | @media (min-width: $tablet) {
12 | padding: 30px;
13 | }
14 |
15 | h1 {
16 | font-family: 'Roboto Slab', serif;
17 | font-size: 1.25em;
18 | font-weight: 500;
19 | margin: 10px 0 30px;
20 | text-align: center;
21 | color: #666;
22 | }
23 |
24 | p {
25 |
26 | color: #666;
27 |
28 | b {
29 | color: $green;
30 | font-weight: 600;
31 | }
32 |
33 | a {
34 |
35 | color: $green;
36 | cursor: pointer;
37 | font-weight: 600;
38 |
39 | &:hover {
40 | text-decoration: underline;
41 | }
42 |
43 | }
44 |
45 | }
46 |
47 | .sign-out {
48 |
49 | margin-top: 50px;
50 | text-align: center;
51 |
52 | a {
53 |
54 | color: #666;
55 | font-size: .95em;
56 | cursor: pointer;
57 |
58 | &:hover {
59 | text-decoration: underline;
60 | }
61 |
62 | }
63 |
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/src/app/components/common/Button.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import PropTypes from 'prop-types'
3 | import './Button.scss'
4 |
5 | const Button = ({ children, loading, onClick }) => (
6 |