Implement country based descriptions

This commit is contained in:
Narek Zakarian 2025-01-23 19:44:39 +04:00
parent b3f64f3700
commit 750a851919
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
3 changed files with 129 additions and 7 deletions

View file

@ -19,12 +19,21 @@ const FeatureSettingsBlock = ( { title, description, ...props } ) => {
);
};
const renderDescription = () => {
return (
<span
className="ppcp-r-feature-item__description ppcp-r-settings-block__feature__description"
dangerouslySetInnerHTML={ { __html: description } }
/>
);
};
const renderButton = ( button ) => {
const buttonElement = (
<Button
className={ button.class ? button.class : '' }
key={ button.text }
isBusy={ props.actionProps?.isBusy }
isBusy={ props.actionProps?.isBusy }
variant={ button.type }
onClick={ button.onClick }
>
@ -51,7 +60,7 @@ const FeatureSettingsBlock = ( { title, description, ...props } ) => {
) }
</Title>
<Description className="ppcp-r-settings-block__feature__description">
{ description }
{ renderDescription() }
{ printNotes() }
</Description>
</Header>