Update manual inputs labels for sandbox/live

This commit is contained in:
Alex P. 2024-10-31 09:44:57 +02:00
parent 6f205ee730
commit 2ec94b1113
No known key found for this signature in database
GPG key ID: 54487A734A204D71

View file

@ -125,19 +125,33 @@ const WelcomeForm = () => {
>
<DataStoreControl
control={ TextControl }
label={ __(
label={
isSandboxMode
? __(
'Sandbox Client ID',
'woocommerce-paypal-payments'
) }
)
: __(
'Live Client ID',
'woocommerce-paypal-payments'
)
}
value={ clientId }
onChange={ setClientId }
/>
<DataStoreControl
control={ TextControl }
label={ __(
label={
isSandboxMode
? __(
'Sandbox Secret Key',
'woocommerce-paypal-payments'
) }
)
: __(
'Live Secret Key',
'woocommerce-paypal-payments'
)
}
value={ clientSecret }
onChange={ setClientSecret }
type="password"