💄 New help icon instead of text for location info

This commit is contained in:
Philipp Stracker 2025-01-17 15:38:08 +01:00
parent 48c68c1855
commit 962c69905d
No known key found for this signature in database
4 changed files with 25 additions and 37 deletions

View file

@ -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,
};
};