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 <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"