mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
💄 New help icon instead of text for location info
This commit is contained in:
parent
48c68c1855
commit
962c69905d
4 changed files with 25 additions and 37 deletions
|
@ -85,13 +85,9 @@ export const useStylingLocation = () => {
|
|||
export const useLocationProps = ( location ) => {
|
||||
const details = STYLING_LOCATIONS[ location ] ?? {};
|
||||
|
||||
// eslint-disable-next-line @wordpress/valid-sprintf
|
||||
const description = sprintf( details.description ?? '', details.link );
|
||||
|
||||
return {
|
||||
choices: Object.values( STYLING_LOCATIONS ),
|
||||
details,
|
||||
description,
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue