Also add AutoHeightContainer to the password forms

This commit is contained in:
Chi Vinh Le
2018-08-22 19:31:44 +02:00
parent 89749926c6
commit 0455293c0b
2 changed files with 6 additions and 0 deletions
@@ -19,6 +19,8 @@ import {
ValidationMessage,
} from "talk-ui/components";
import AutoHeightContainer from "../containers/AutoHeightContainer";
interface FormProps {
email: string;
}
@@ -32,6 +34,7 @@ const ForgotPassword: StatelessComponent<ForgotPasswordForm> = props => {
<Form onSubmit={props.onSubmit}>
{({ handleSubmit }) => (
<form autoComplete="off" onSubmit={handleSubmit}>
<AutoHeightContainer />
<Flex itemGutter="double" direction="column" className={styles.root}>
<Typography variant="heading1" align="center">
Forgot Password
@@ -21,6 +21,8 @@ import {
ValidationMessage,
} from "talk-ui/components";
import AutoHeightContainer from "../containers/AutoHeightContainer";
interface FormProps {
password: string;
confirmPassword: string;
@@ -35,6 +37,7 @@ const ResetPassword: StatelessComponent<ResetPasswordForm> = props => {
<Form onSubmit={props.onSubmit}>
{({ handleSubmit }) => (
<form autoComplete="off" onSubmit={handleSubmit}>
<AutoHeightContainer />
<Flex itemGutter="double" direction="column" className={styles.root}>
<Typography variant="heading1" align="center">
Reset Password