File tree Expand file tree Collapse file tree 9 files changed +18
-18
lines changed
packages/aws-amplify-react/src Expand file tree Collapse file tree 9 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ export default class ConfirmSignIn extends AuthPiece {
93
93
< SectionHeader theme = { theme } > { I18n . get ( 'Confirm ' + this . state . mfaType + ' Code' ) } </ SectionHeader >
94
94
< SectionBody theme = { theme } >
95
95
< FormField theme = { theme } >
96
- < InputLabel > { I18n . get ( 'Code' ) } *</ InputLabel >
96
+ < InputLabel theme = { theme } > { I18n . get ( 'Code' ) } *</ InputLabel >
97
97
< Input
98
98
autoFocus
99
99
placeholder = { I18n . get ( 'Code' ) }
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export default class ConfirmSignUp extends AuthPiece {
77
77
</ SectionHeader >
78
78
< SectionBody theme = { theme } >
79
79
< FormField theme = { theme } >
80
- < InputLabel > { I18n . get ( 'Username' ) } *</ InputLabel >
80
+ < InputLabel theme = { theme } > { I18n . get ( 'Username' ) } *</ InputLabel >
81
81
< Input
82
82
placeholder = { I18n . get ( 'Username' ) }
83
83
theme = { theme }
@@ -90,7 +90,7 @@ export default class ConfirmSignUp extends AuthPiece {
90
90
</ FormField >
91
91
92
92
< FormField theme = { theme } >
93
- < InputLabel > { I18n . get ( 'Confirmation Code' ) } *</ InputLabel >
93
+ < InputLabel theme = { theme } > { I18n . get ( 'Confirmation Code' ) } *</ InputLabel >
94
94
< Input
95
95
autoFocus
96
96
placeholder = { I18n . get ( 'Enter your code' ) }
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export default class ForgotPassword extends AuthPiece {
82
82
return (
83
83
< div >
84
84
< FormField theme = { theme } >
85
- < InputLabel > { I18n . get ( 'Username' ) } *</ InputLabel >
85
+ < InputLabel theme = { theme } > { I18n . get ( 'Username' ) } *</ InputLabel >
86
86
< Input
87
87
autoFocus
88
88
placeholder = { I18n . get ( 'Enter your username' ) }
@@ -127,7 +127,7 @@ export default class ForgotPassword extends AuthPiece {
127
127
return (
128
128
< FormSection theme = { theme } >
129
129
< SectionHeader theme = { theme } > { I18n . get ( 'Reset your password' ) } </ SectionHeader >
130
- < SectionBody >
130
+ < SectionBody theme = { theme } >
131
131
{ this . state . delivery || authData . username ? this . submitView ( ) : this . sendView ( ) }
132
132
</ SectionBody >
133
133
< SectionFooter theme = { theme } >
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export default class RequireNewPassword extends AuthPiece {
91
91
return (
92
92
< FormSection theme = { theme } >
93
93
< SectionHeader theme = { theme } > { I18n . get ( 'Change Password' ) } </ SectionHeader >
94
- < SectionBody >
94
+ < SectionBody theme = { theme } >
95
95
< Input
96
96
autoFocus
97
97
placeholder = { I18n . get ( 'New Password' ) }
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export default class SignIn extends AuthPiece {
134
134
onAuthEvent = { onAuthEvent }
135
135
/>
136
136
< FormField theme = { theme } >
137
- < InputLabel > { I18n . get ( 'Username' ) } *</ InputLabel >
137
+ < InputLabel theme = { theme } > { I18n . get ( 'Username' ) } *</ InputLabel >
138
138
< Input
139
139
autoFocus
140
140
placeholder = { I18n . get ( 'Enter your username' ) }
@@ -145,7 +145,7 @@ export default class SignIn extends AuthPiece {
145
145
/>
146
146
</ FormField >
147
147
< FormField theme = { theme } >
148
- < InputLabel > { I18n . get ( 'Password' ) } *</ InputLabel >
148
+ < InputLabel theme = { theme } > { I18n . get ( 'Password' ) } *</ InputLabel >
149
149
< Input
150
150
placeholder = { I18n . get ( 'Enter your password' ) }
151
151
theme = { theme }
Original file line number Diff line number Diff line change @@ -216,8 +216,8 @@ export default class SignUp extends AuthPiece {
216
216
< FormField theme = { theme } key = { field . key } >
217
217
{
218
218
field . required ?
219
- < InputLabel > { I18n . get ( field . label ) } *</ InputLabel > :
220
- < InputLabel > { I18n . get ( field . label ) } </ InputLabel >
219
+ < InputLabel theme = { theme } > { I18n . get ( field . label ) } *</ InputLabel > :
220
+ < InputLabel theme = { theme } > { I18n . get ( field . label ) } </ InputLabel >
221
221
}
222
222
< Input
223
223
autoFocus = {
@@ -237,8 +237,8 @@ export default class SignUp extends AuthPiece {
237
237
< FormField theme = { theme } key = "phone_number" >
238
238
{
239
239
field . required ?
240
- < InputLabel > { I18n . get ( field . label ) } *</ InputLabel > :
241
- < InputLabel > { I18n . get ( field . label ) } </ InputLabel >
240
+ < InputLabel theme = { theme } > { I18n . get ( field . label ) } *</ InputLabel > :
241
+ < InputLabel theme = { theme } > { I18n . get ( field . label ) } </ InputLabel >
242
242
}
243
243
< SelectInput theme = { theme } >
244
244
< select name = "dial_code" defaultValue = { this . getDefaultDialCode ( ) }
Original file line number Diff line number Diff line change @@ -76,13 +76,13 @@ export default class PhotoPicker extends Component {
76
76
return (
77
77
< FormSection theme = { theme } >
78
78
< SectionHeader theme = { theme } hint = { headerHint } > { I18n . get ( headerText ) } </ SectionHeader >
79
- < SectionBody >
79
+ < SectionBody theme = { theme } >
80
80
{ previewSrc ?
81
81
( previewHidden ?
82
82
'The image has been selected' :
83
83
< img src = { previewSrc } style = { previewStyle } />
84
84
) :
85
- < PhotoPlaceholder />
85
+ < PhotoPlaceholder theme = { theme } />
86
86
}
87
87
</ SectionBody >
88
88
< Picker
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export default class SelectMFAType extends Component {
119
119
return (
120
120
< FormSection theme = { theme } >
121
121
{ this . state . showToast && this . state . selectMessage &&
122
- < Toast onClose = { ( ) => this . setState ( { showToast : false } ) } >
122
+ < Toast theme = { theme } onClose = { ( ) => this . setState ( { showToast : false } ) } >
123
123
{ I18n . get ( this . state . selectMessage ) }
124
124
</ Toast >
125
125
}
@@ -156,7 +156,7 @@ export default class SelectMFAType extends Component {
156
156
157
157
</ div >
158
158
</ SectionBody >
159
- < SectionFooter >
159
+ < SectionFooter theme = { theme } >
160
160
< Button theme = { theme } onClick = { this . verify } > { I18n . get ( 'Verify' ) } </ Button >
161
161
</ SectionFooter >
162
162
</ FormSection >
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ export default class TOTPSetupComp extends Component {
113
113
< div className = { totpQrcode } >
114
114
< QRCode value = { code } />
115
115
</ div >
116
- < InputLabel > { I18n . get ( 'Enter Security Code:' ) } </ InputLabel >
116
+ < InputLabel theme = { theme } > { I18n . get ( 'Enter Security Code:' ) } </ InputLabel >
117
117
< Input
118
118
autoFocus
119
119
theme = { theme }
@@ -144,7 +144,7 @@ export default class TOTPSetupComp extends Component {
144
144
}
145
145
</ SectionBody >
146
146
147
- < SectionFooter >
147
+ < SectionFooter theme = { theme } >
148
148
< Button theme = { theme } onClick = { this . verifyTotpToken } style = { { width : '100%' } } >
149
149
{ I18n . get ( 'Verify Security Token' ) }
150
150
</ Button >
You can’t perform that action at this time.
0 commit comments