mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Redesign the welcome changes
This commit is contained in:
parent
d4e0167d88
commit
6d078fcf5d
17 changed files with 468 additions and 208 deletions
|
@ -0,0 +1,37 @@
|
|||
import data from '../../utils/data';
|
||||
import TitleBadge, {TITLE_BADGE_INFO} from "./TitleBadge";
|
||||
import {__} from "@wordpress/i18n";
|
||||
|
||||
const BadgeBox = ( props ) => {
|
||||
const titleTag = props.titleTag ?? 'h3';
|
||||
const TitleTag = titleTag;
|
||||
return (
|
||||
<div className="ppcp-r-text-badge-box">
|
||||
<span className="ppcp-r-text-badge-box__title">
|
||||
{props.title}
|
||||
|
||||
{props.imageBadge && (
|
||||
<span className="ppcp-r-title-image-badge">
|
||||
{props.imageBadge.map((badge) => data().getImage(badge))}
|
||||
</span>
|
||||
)}
|
||||
|
||||
{props.textBadge && (
|
||||
<TitleBadge type={TITLE_BADGE_INFO} text={props.textBadge}/>
|
||||
)}
|
||||
</span>
|
||||
<div className="ppcp-r-text-badge-box__description">
|
||||
{props?.description && (
|
||||
<p
|
||||
className="ppcp-r-text-badge-box__description"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: props.description,
|
||||
}}
|
||||
></p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default BadgeBox;
|
Loading…
Add table
Add a link
Reference in a new issue