mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 04:58:28 +08:00
Update manual inputs labels for sandbox/live
This commit is contained in:
parent
6f205ee730
commit
2ec94b1113
1 changed files with 22 additions and 8 deletions
|
@ -125,19 +125,33 @@ const WelcomeForm = () => {
|
||||||
>
|
>
|
||||||
<DataStoreControl
|
<DataStoreControl
|
||||||
control={ TextControl }
|
control={ TextControl }
|
||||||
label={ __(
|
label={
|
||||||
|
isSandboxMode
|
||||||
|
? __(
|
||||||
'Sandbox Client ID',
|
'Sandbox Client ID',
|
||||||
'woocommerce-paypal-payments'
|
'woocommerce-paypal-payments'
|
||||||
) }
|
)
|
||||||
|
: __(
|
||||||
|
'Live Client ID',
|
||||||
|
'woocommerce-paypal-payments'
|
||||||
|
)
|
||||||
|
}
|
||||||
value={ clientId }
|
value={ clientId }
|
||||||
onChange={ setClientId }
|
onChange={ setClientId }
|
||||||
/>
|
/>
|
||||||
<DataStoreControl
|
<DataStoreControl
|
||||||
control={ TextControl }
|
control={ TextControl }
|
||||||
label={ __(
|
label={
|
||||||
|
isSandboxMode
|
||||||
|
? __(
|
||||||
'Sandbox Secret Key',
|
'Sandbox Secret Key',
|
||||||
'woocommerce-paypal-payments'
|
'woocommerce-paypal-payments'
|
||||||
) }
|
)
|
||||||
|
: __(
|
||||||
|
'Live Secret Key',
|
||||||
|
'woocommerce-paypal-payments'
|
||||||
|
)
|
||||||
|
}
|
||||||
value={ clientSecret }
|
value={ clientSecret }
|
||||||
onChange={ setClientSecret }
|
onChange={ setClientSecret }
|
||||||
type="password"
|
type="password"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue