File tree Expand file tree Collapse file tree 12 files changed +39
-122
lines changed Expand file tree Collapse file tree 12 files changed +39
-122
lines changed Original file line number Diff line number Diff line change
1
+ import styled from 'styled-components' ;
2
+ import { prop } from '../theme' ;
3
+
4
+ const RootPage = styled . div `
5
+ height: 100%;
6
+ overflow: auto;
7
+ display: flex;
8
+ flex-direction: column;
9
+ color: ${ prop ( 'primaryTextColor' ) } ;
10
+ background-color: ${ prop ( 'backgroundColor' ) } ;
11
+ ` ;
12
+
13
+ export default RootPage ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Helmet from 'react-helmet';
3
3
import axios from 'axios' ;
4
4
import Nav from '../../../components/Nav' ;
5
5
import PolicyContainer from '../components/PolicyContainer' ;
6
+ import RootPage from '../../../components/RootPage' ;
6
7
7
8
function PrivacyPolicy ( ) {
8
9
const [ privacyPolicy , setPrivacyPolicy ] = useState ( '' ) ;
@@ -16,8 +17,10 @@ function PrivacyPolicy() {
16
17
< Helmet >
17
18
< title > Privacy Policy</ title >
18
19
</ Helmet >
19
- < Nav layout = "dashboard" />
20
- < PolicyContainer policy = { privacyPolicy } />
20
+ < RootPage >
21
+ < Nav layout = "dashboard" />
22
+ < PolicyContainer policy = { privacyPolicy } />
23
+ </ RootPage >
21
24
</ >
22
25
) ;
23
26
}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Helmet from 'react-helmet';
3
3
import axios from 'axios' ;
4
4
import Nav from '../../../components/Nav' ;
5
5
import PolicyContainer from '../components/PolicyContainer' ;
6
+ import RootPage from '../../../components/RootPage' ;
6
7
7
8
function TermsOfUse ( ) {
8
9
const [ termsOfUse , setTermsOfUse ] = useState ( '' ) ;
@@ -16,8 +17,10 @@ function TermsOfUse() {
16
17
< Helmet >
17
18
< title > Terms of Use</ title >
18
19
</ Helmet >
19
- < Nav layout = "dashboard" />
20
- < PolicyContainer policy = { termsOfUse } />
20
+ < RootPage >
21
+ < Nav layout = "dashboard" />
22
+ < PolicyContainer policy = { termsOfUse } />
23
+ </ RootPage >
21
24
</ >
22
25
) ;
23
26
}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ const CookieConsentDialog = styled.div`
27
27
width: 100%;
28
28
height: 100%;
29
29
background: ${ prop ( 'Modal.background' ) } ;
30
+ color: ${ prop ( 'primaryTextColor' ) } ;
30
31
border-top: 1px solid ${ prop ( 'Separator' ) } ;
31
32
padding: ${ remSize ( 40 ) } ${ remSize ( 60 ) } ;
32
33
` ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import get from 'lodash/get';
8
8
import { Helmet } from 'react-helmet' ;
9
9
import { verifyEmailConfirmation } from '../actions' ;
10
10
import Nav from '../../../components/Nav' ;
11
+ import RootPage from '../../../components/RootPage' ;
11
12
12
13
class EmailVerificationView extends React . Component {
13
14
static defaultProps = {
@@ -39,7 +40,7 @@ class EmailVerificationView extends React.Component {
39
40
}
40
41
41
42
return (
42
- < div className = "email-verification" >
43
+ < RootPage >
43
44
< Nav layout = "dashboard" />
44
45
< div className = "form-container" >
45
46
< Helmet >
@@ -52,7 +53,7 @@ class EmailVerificationView extends React.Component {
52
53
{ status }
53
54
</ div >
54
55
</ div >
55
- </ div >
56
+ </ RootPage >
56
57
) ;
57
58
}
58
59
}
Original file line number Diff line number Diff line change @@ -5,11 +5,12 @@ import { useTranslation } from 'react-i18next';
5
5
import LoginForm from '../components/LoginForm' ;
6
6
import SocialAuthButton from '../components/SocialAuthButton' ;
7
7
import Nav from '../../../components/Nav' ;
8
+ import RootPage from '../../../components/RootPage' ;
8
9
9
10
function LoginView ( ) {
10
11
const { t } = useTranslation ( ) ;
11
12
return (
12
- < div className = "login" >
13
+ < RootPage >
13
14
< Nav layout = "dashboard" />
14
15
< main className = "form-container" >
15
16
< Helmet >
@@ -38,7 +39,7 @@ function LoginView() {
38
39
</ p >
39
40
</ div >
40
41
</ main >
41
- </ div >
42
+ </ RootPage >
42
43
) ;
43
44
}
44
45
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { useTranslation } from 'react-i18next';
7
7
import NewPasswordForm from '../components/NewPasswordForm' ;
8
8
import { validateResetPasswordToken } from '../actions' ;
9
9
import Nav from '../../../components/Nav' ;
10
+ import RootPage from '../../../components/RootPage' ;
10
11
11
12
function NewPasswordView ( props ) {
12
13
const { t } = useTranslation ( ) ;
@@ -27,7 +28,7 @@ function NewPasswordView(props) {
27
28
user : true
28
29
} ) ;
29
30
return (
30
- < div className = "new-password-container" >
31
+ < RootPage >
31
32
< Nav layout = "dashboard" />
32
33
< div className = { newPasswordClass } >
33
34
< Helmet >
@@ -43,7 +44,7 @@ function NewPasswordView(props) {
43
44
</ p >
44
45
</ div >
45
46
</ div >
46
- </ div >
47
+ </ RootPage >
47
48
) ;
48
49
}
49
50
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { Helmet } from 'react-helmet';
6
6
import { useTranslation } from 'react-i18next' ;
7
7
import ResetPasswordForm from '../components/ResetPasswordForm' ;
8
8
import Nav from '../../../components/Nav' ;
9
+ import RootPage from '../../../components/RootPage' ;
9
10
10
11
function ResetPasswordView ( ) {
11
12
const { t } = useTranslation ( ) ;
@@ -19,7 +20,7 @@ function ResetPasswordView() {
19
20
user : true
20
21
} ) ;
21
22
return (
22
- < div className = "reset-password-container" >
23
+ < RootPage >
23
24
< Nav layout = "dashboard" />
24
25
< div className = { resetPasswordClass } >
25
26
< Helmet >
@@ -44,7 +45,7 @@ function ResetPasswordView() {
44
45
</ p >
45
46
</ div >
46
47
</ div >
47
- </ div >
48
+ </ RootPage >
48
49
) ;
49
50
}
50
51
Original file line number Diff line number Diff line change @@ -5,11 +5,12 @@ import { useTranslation } from 'react-i18next';
5
5
import SignupForm from '../components/SignupForm' ;
6
6
import SocialAuthButton from '../components/SocialAuthButton' ;
7
7
import Nav from '../../../components/Nav' ;
8
+ import RootPage from '../../../components/RootPage' ;
8
9
9
10
function SignupView ( ) {
10
11
const { t } = useTranslation ( ) ;
11
12
return (
12
- < div className = "signup" >
13
+ < RootPage >
13
14
< Nav layout = "dashboard" />
14
15
< main className = "form-container" >
15
16
< Helmet >
@@ -38,7 +39,7 @@ function SignupView() {
38
39
</ p >
39
40
</ div >
40
41
</ main >
41
- </ div >
42
+ </ RootPage >
42
43
) ;
43
44
}
44
45
You can’t perform that action at this time.
0 commit comments