aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilyayudovin <ilyayudovin123@gmail.com>2020-08-29 02:20:22 +0300
committerilyayudovin <ilyayudovin123@gmail.com>2020-08-29 02:20:22 +0300
commite3d230ffcc344b9027b19a136525f105149f0982 (patch)
tree49a0211d36881c8be2984efe80f20248998332b7
parentae005b8444aacc4071512f38031043156b6854c4 (diff)
downloadwhich-ui-e3d230ffcc344b9027b19a136525f105149f0982.tar.gz
add fixed height for inputs to avoid jumping errorText
-rw-r--r--src/containers/Registration/Registration.tsx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/containers/Registration/Registration.tsx b/src/containers/Registration/Registration.tsx
index e7c8874..422cf92 100644
--- a/src/containers/Registration/Registration.tsx
+++ b/src/containers/Registration/Registration.tsx
@@ -40,6 +40,9 @@ const useStyles = makeStyles(theme => ({
marginLeft: 10,
color: 'green',
cursor: 'pointer'
+ },
+ textField: {
+ height: 70
}
}));
@@ -132,6 +135,7 @@ const Registration: React.FC = () => {
onBlur={handleUsernameChange}
onInput={handleToLowerCase}
onFocus={handleFocus('username')}
+ className={classes.textField}
/>
<TextField
inputRef={emailRef}
@@ -140,6 +144,7 @@ const Registration: React.FC = () => {
helperText={errors.email && 'Invalid email address'}
onBlur={handleEmailChange}
onFocus={handleFocus('email')}
+ className={classes.textField}
/>
<TextField
inputRef={passwordRef}
@@ -164,6 +169,7 @@ const Registration: React.FC = () => {
</InputAdornment>
)
}}
+ className={classes.textField}
/>
<Button variant="contained" type="submit">submit</Button>
</form>