diff --git a/src/page_templates/StandaloneFormPage.react.js b/src/page_templates/StandaloneFormPage.react.js index 84db658f..7a8a4b08 100644 --- a/src/page_templates/StandaloneFormPage.react.js +++ b/src/page_templates/StandaloneFormPage.react.js @@ -1,28 +1,29 @@ -// @flow - -import * as React from "react"; - -type Props = {| - +children?: React.Node, -|}; - -function StandaloneFormPage(props: Props): React.Node { - return ( -
-
-
-
-
-
- -
- {props.children} -
-
-
-
-
- ); -} - -export default StandaloneFormPage; +// @flow + +import * as React from "react"; + +type Props = {| + +children?: React.Node, + +imageURL?: string, +|}; + +function StandaloneFormPage(props: Props): React.Node { + return ( +
+
+
+
+
+
+ logo +
+ {props.children} +
+
+
+
+
+ ); +} + +export default StandaloneFormPage; diff --git a/src/page_templates/account/ForgotPasswordPage/ForgotPasswordPage.react.js b/src/page_templates/account/ForgotPasswordPage/ForgotPasswordPage.react.js index 00cabbec..3965412d 100644 --- a/src/page_templates/account/ForgotPasswordPage/ForgotPasswordPage.react.js +++ b/src/page_templates/account/ForgotPasswordPage/ForgotPasswordPage.react.js @@ -45,7 +45,7 @@ function ForgotPasswordPage(props: Props): React.Node { } = props; return ( - + = withTouchedErrors(["email"])(ForgotPasswordPage); +const ForgotPasswordPageWithTouchedErrors: React.ComponentType = withTouchedErrors( + ["email"] +)(ForgotPasswordPage); export default ForgotPasswordPageWithTouchedErrors; diff --git a/src/page_templates/account/LoginPage/LoginPage.react.js b/src/page_templates/account/LoginPage/LoginPage.react.js index 4519a51d..85f81c61 100644 --- a/src/page_templates/account/LoginPage/LoginPage.react.js +++ b/src/page_templates/account/LoginPage/LoginPage.react.js @@ -47,7 +47,7 @@ function LoginPage(props: Props): React.Node { } = props; return ( - + = withTouchedErrors(["email", "password"])(LoginPage); +const LoginPageWithTouchedErrors: React.ComponentType = withTouchedErrors( + ["email", "password"] +)(LoginPage); export default LoginPageWithTouchedErrors; diff --git a/src/page_templates/account/RegisterPage/RegisterPage.react.js b/src/page_templates/account/RegisterPage/RegisterPage.react.js index 352c24bd..527feb64 100644 --- a/src/page_templates/account/RegisterPage/RegisterPage.react.js +++ b/src/page_templates/account/RegisterPage/RegisterPage.react.js @@ -57,7 +57,7 @@ function RegisterPage(props: Props): React.Node { } = props; return ( - + = withTouchedErrors(["name", "email", "password", "terms"])(RegisterPage); +const RegisterPageWithTouchedErrors: React.ComponentType = withTouchedErrors( + ["name", "email", "password", "terms"] +)(RegisterPage); export default RegisterPageWithTouchedErrors;