Skip to content

Commit 77904be

Browse files
committed
fix(aws-amplify-react): fix instances of missing theme prop
1 parent 342bcd0 commit 77904be

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

packages/aws-amplify-react/src/Auth/ConfirmSignIn.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default class ConfirmSignIn extends AuthPiece {
9393
<SectionHeader theme={theme}>{I18n.get('Confirm ' + this.state.mfaType + ' Code')}</SectionHeader>
9494
<SectionBody theme={theme}>
9595
<FormField theme={theme}>
96-
<InputLabel>{I18n.get('Code')} *</InputLabel>
96+
<InputLabel theme={theme}>{I18n.get('Code')} *</InputLabel>
9797
<Input
9898
autoFocus
9999
placeholder={I18n.get('Code')}

packages/aws-amplify-react/src/Auth/ConfirmSignUp.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default class ConfirmSignUp extends AuthPiece {
7777
</SectionHeader>
7878
<SectionBody theme={theme}>
7979
<FormField theme={theme}>
80-
<InputLabel>{I18n.get('Username')} *</InputLabel>
80+
<InputLabel theme={theme}>{I18n.get('Username')} *</InputLabel>
8181
<Input
8282
placeholder={I18n.get('Username')}
8383
theme={theme}
@@ -90,7 +90,7 @@ export default class ConfirmSignUp extends AuthPiece {
9090
</FormField>
9191

9292
<FormField theme={theme}>
93-
<InputLabel>{I18n.get('Confirmation Code')} *</InputLabel>
93+
<InputLabel theme={theme}>{I18n.get('Confirmation Code')} *</InputLabel>
9494
<Input
9595
autoFocus
9696
placeholder={I18n.get('Enter your code')}

packages/aws-amplify-react/src/Auth/ForgotPassword.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default class ForgotPassword extends AuthPiece {
8282
return (
8383
<div>
8484
<FormField theme={theme}>
85-
<InputLabel>{I18n.get('Username')} *</InputLabel>
85+
<InputLabel theme={theme}>{I18n.get('Username')} *</InputLabel>
8686
<Input
8787
autoFocus
8888
placeholder={I18n.get('Enter your username')}
@@ -127,7 +127,7 @@ export default class ForgotPassword extends AuthPiece {
127127
return (
128128
<FormSection theme={theme}>
129129
<SectionHeader theme={theme}>{I18n.get('Reset your password')}</SectionHeader>
130-
<SectionBody>
130+
<SectionBody theme={theme}>
131131
{ this.state.delivery || authData.username ? this.submitView() : this.sendView() }
132132
</SectionBody>
133133
<SectionFooter theme={theme}>

packages/aws-amplify-react/src/Auth/RequireNewPassword.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default class RequireNewPassword extends AuthPiece {
9191
return (
9292
<FormSection theme={theme}>
9393
<SectionHeader theme={theme}>{I18n.get('Change Password')}</SectionHeader>
94-
<SectionBody>
94+
<SectionBody theme={theme}>
9595
<Input
9696
autoFocus
9797
placeholder={I18n.get('New Password')}

packages/aws-amplify-react/src/Auth/SignIn.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export default class SignIn extends AuthPiece {
134134
onAuthEvent={onAuthEvent}
135135
/>
136136
<FormField theme={theme}>
137-
<InputLabel>{I18n.get('Username')} *</InputLabel>
137+
<InputLabel theme={theme}>{I18n.get('Username')} *</InputLabel>
138138
<Input
139139
autoFocus
140140
placeholder={I18n.get('Enter your username')}
@@ -145,7 +145,7 @@ export default class SignIn extends AuthPiece {
145145
/>
146146
</FormField>
147147
<FormField theme={theme}>
148-
<InputLabel>{I18n.get('Password')} *</InputLabel>
148+
<InputLabel theme={theme}>{I18n.get('Password')} *</InputLabel>
149149
<Input
150150
placeholder={I18n.get('Enter your password')}
151151
theme={theme}

packages/aws-amplify-react/src/Auth/SignUp.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ export default class SignUp extends AuthPiece {
216216
<FormField theme={theme} key={field.key}>
217217
{
218218
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>
221221
}
222222
<Input
223223
autoFocus={
@@ -237,8 +237,8 @@ export default class SignUp extends AuthPiece {
237237
<FormField theme={theme} key="phone_number">
238238
{
239239
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>
242242
}
243243
<SelectInput theme={theme}>
244244
<select name="dial_code" defaultValue={this.getDefaultDialCode()}

packages/aws-amplify-react/src/Widget/PhotoPicker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ export default class PhotoPicker extends Component {
7676
return (
7777
<FormSection theme={theme}>
7878
<SectionHeader theme={theme} hint={headerHint}>{I18n.get(headerText)}</SectionHeader>
79-
<SectionBody>
79+
<SectionBody theme={theme}>
8080
{ previewSrc ?
8181
(previewHidden ?
8282
'The image has been selected':
8383
<img src={previewSrc} style={previewStyle} />
8484
):
85-
<PhotoPlaceholder />
85+
<PhotoPlaceholder theme={theme}/>
8686
}
8787
</SectionBody>
8888
<Picker

packages/aws-amplify-react/src/Widget/SelectMFAType.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export default class SelectMFAType extends Component {
119119
return (
120120
<FormSection theme={theme}>
121121
{this.state.showToast && this.state.selectMessage &&
122-
<Toast onClose={() => this.setState({showToast: false})}>
122+
<Toast theme={theme} onClose={() => this.setState({showToast: false})}>
123123
{ I18n.get(this.state.selectMessage) }
124124
</Toast>
125125
}
@@ -156,7 +156,7 @@ export default class SelectMFAType extends Component {
156156

157157
</div>
158158
</SectionBody>
159-
<SectionFooter>
159+
<SectionFooter theme={theme}>
160160
<Button theme={theme} onClick={this.verify}>{I18n.get('Verify')}</Button>
161161
</SectionFooter>
162162
</FormSection>

packages/aws-amplify-react/src/Widget/TOTPSetupComp.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default class TOTPSetupComp extends Component {
113113
<div className={totpQrcode}>
114114
<QRCode value={code} />
115115
</div>
116-
<InputLabel>{I18n.get('Enter Security Code:')}</InputLabel>
116+
<InputLabel theme={theme}>{I18n.get('Enter Security Code:')}</InputLabel>
117117
<Input
118118
autoFocus
119119
theme={theme}
@@ -144,7 +144,7 @@ export default class TOTPSetupComp extends Component {
144144
}
145145
</SectionBody>
146146

147-
<SectionFooter>
147+
<SectionFooter theme={theme}>
148148
<Button theme={theme} onClick={this.verifyTotpToken} style={{width: '100%'}}>
149149
{I18n.get('Verify Security Token')}
150150
</Button>

0 commit comments

Comments
 (0)