@@ -31,33 +31,8 @@ const useStyles = makeStyles((theme) => ({
31
31
borderTop : `1px solid ${ theme . palette . action . disabled } ` ,
32
32
paddingTop : theme . spacing ( 3 ) ,
33
33
} ,
34
- loginTypeToggleWrapper : {
34
+ loginTextField : {
35
35
marginTop : theme . spacing ( 2 ) ,
36
- display : "flex" ,
37
- justifyContent : "center" ,
38
- } ,
39
- loginTypeToggleBtn : {
40
- color : theme . palette . text . primary ,
41
- // We want opacity so that this isn't super highlighted for the user.
42
- // In most cases, they shouldn't want to switch login types.
43
- opacity : 0.5 ,
44
- "&:hover" : {
45
- cursor : "pointer" ,
46
- opacity : 1 ,
47
- textDecoration : "underline" ,
48
- } ,
49
- } ,
50
- loginTypeToggleBtnFocusVisible : {
51
- opacity : 1 ,
52
- textDecoration : "underline" ,
53
- } ,
54
- loginTypeBtn : {
55
- backgroundColor : "#2A2B45" ,
56
- textTransform : "none" ,
57
-
58
- "&:not(:first-child)" : {
59
- marginTop : theme . spacing ( 2 ) ,
60
- } ,
61
36
} ,
62
37
submitBtn : {
63
38
marginTop : theme . spacing ( 2 ) ,
@@ -101,27 +76,28 @@ export const SignInForm: React.FC<SignInProps> = ({
101
76
< FormTextField
102
77
autoComplete = "email"
103
78
autoFocus
79
+ className = { styles . loginTextField }
104
80
eventTransform = { ( email : string ) => email . trim ( ) }
105
81
form = { form }
106
82
formFieldName = "email"
107
83
fullWidth
108
84
inputProps = { {
109
85
id : "signin-form-inpt-email" ,
86
+ className : styles . innerText ,
110
87
} }
111
- margin = "none"
112
88
placeholder = "Email"
113
89
variant = "outlined"
114
90
/>
115
91
< FormTextField
116
92
autoComplete = "current-password"
93
+ className = { styles . loginTextField }
117
94
form = { form }
118
95
formFieldName = "password"
119
96
fullWidth
120
97
inputProps = { {
121
98
id : "signin-form-inpt-password" ,
122
99
} }
123
100
isPassword
124
- margin = "none"
125
101
placeholder = "Password"
126
102
variant = "outlined"
127
103
/>
0 commit comments