🚚 Rename component to TitleExtra

This commit is contained in:
Philipp Stracker 2025-01-22 15:09:41 +01:00
parent 1ca6641d77
commit 4da27fdb05
No known key found for this signature in database
4 changed files with 16 additions and 14 deletions

View file

@ -1,7 +1,7 @@
import { TextControl } from '@wordpress/components';
import SettingsBlock from '../SettingsBlock';
import { Title, Action, Description, SupplementaryLabel } from '../Elements';
import { Title, Action, Description, TitleExtra } from '../Elements';
const InputSettingsBlock = ( {
title,
@ -18,11 +18,7 @@ const InputSettingsBlock = ( {
<SettingsBlock className="ppcp-r-settings-block__input">
<Title>
{ title }
{ supplementaryLabel && (
<SupplementaryLabel>
{ supplementaryLabel }
</SupplementaryLabel>
) }
<TitleExtra>{ supplementaryLabel }</TitleExtra>
</Title>
{ showDescriptionFirst && TheDescription }
<Action>