@@ -9,7 +9,6 @@ import { useAppContext } from '../context';
9
9
import { Button , ButtonProps , Flex , Spinner } from '../lib/components' ;
10
10
import { IconBadge } from '../lib/icon-badge' ;
11
11
import { useSelector } from '../redux/store' ;
12
- import * as AppButton from './AppButton' ;
13
12
import { ModalAlert } from './Modal' ;
14
13
import {
15
14
StyledEmptyResponse ,
@@ -194,9 +193,14 @@ export function RedeemVoucherSubmitButton() {
194
193
const disabled = submitting || response ?. type === 'success' ;
195
194
196
195
return (
197
- < AppButton . GreenButton disabled = { ! valueValid || disabled } onClick = { onSubmit } >
198
- { messages . pgettext ( 'redeem-voucher-view' , 'Redeem' ) }
199
- </ AppButton . GreenButton >
196
+ < Button variant = "success" disabled = { ! valueValid || disabled } onClick = { onSubmit } >
197
+ < Button . Text >
198
+ {
199
+ // TRANSLATORS: Button label for voucher redemption.
200
+ messages . pgettext ( 'redeem-voucher-view' , 'Redeem' )
201
+ }
202
+ </ Button . Text >
203
+ </ Button >
200
204
) ;
201
205
}
202
206
@@ -220,9 +224,9 @@ export function RedeemVoucherAlert(props: IRedeemVoucherAlertProps) {
220
224
< ModalAlert
221
225
isOpen = { props . show }
222
226
buttons = { [
223
- < AppButton . BlueButton key = "gotit" onClick = { props . onClose } >
224
- { messages . gettext ( 'Got it!' ) }
225
- </ AppButton . BlueButton > ,
227
+ < Button key = "gotit" onClick = { props . onClose } >
228
+ < Button . Text > { messages . gettext ( 'Got it!' ) } </ Button . Text >
229
+ </ Button > ,
226
230
] }
227
231
close = { props . onClose } >
228
232
< Flex $justifyContent = "center" $margin = { { top : 'large' , bottom : 'medium' } } >
@@ -245,12 +249,22 @@ export function RedeemVoucherAlert(props: IRedeemVoucherAlertProps) {
245
249
isOpen = { props . show }
246
250
buttons = { [
247
251
< RedeemVoucherSubmitButton key = "submit" /> ,
248
- < AppButton . BlueButton key = "cancel" disabled = { submitting } onClick = { props . onClose } >
249
- { messages . pgettext ( 'redeem-voucher-alert' , 'Cancel' ) }
250
- </ AppButton . BlueButton > ,
252
+ < Button key = "cancel" disabled = { submitting } onClick = { props . onClose } >
253
+ < Button . Text >
254
+ {
255
+ // TRANSLATORS: Cancel button label for voucher redemption.
256
+ messages . pgettext ( 'redeem-voucher-alert' , 'Cancel' )
257
+ }
258
+ </ Button . Text >
259
+ </ Button > ,
251
260
] }
252
261
close = { props . onClose } >
253
- < StyledLabel > { messages . pgettext ( 'redeem-voucher-alert' , 'Enter voucher code' ) } </ StyledLabel >
262
+ < StyledLabel >
263
+ {
264
+ // TRANSLATORS: Input field label for voucher code.
265
+ messages . pgettext ( 'redeem-voucher-alert' , 'Enter voucher code' )
266
+ }
267
+ </ StyledLabel >
254
268
< RedeemVoucherInput />
255
269
< RedeemVoucherResponse />
256
270
</ ModalAlert >
0 commit comments