mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
♻️ Move checkbox-configuraton into component
This commit is contained in:
parent
e78e7ec3f3
commit
8b945dab95
2 changed files with 10 additions and 11 deletions
|
@ -156,15 +156,6 @@ export const useTaglineProps = ( location ) => {
|
|||
getLocationProp( location, 'layout' );
|
||||
|
||||
return {
|
||||
choices: [
|
||||
{
|
||||
value: 'tagline',
|
||||
label: __(
|
||||
'Show tagline below buttons',
|
||||
'woocommerce-paypal-payments'
|
||||
),
|
||||
},
|
||||
],
|
||||
isAvailable,
|
||||
tagline: isAvailable ? getLocationProp( location, 'tagline' ) : false,
|
||||
setTagline: ( tagline ) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue