mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Add the superscript element
This commit is contained in:
parent
749ce8b3f2
commit
0caf433965
3 changed files with 41 additions and 9 deletions
|
@ -1,6 +1,11 @@
|
|||
const TitleBadge = ( { text, type } ) => {
|
||||
const className = 'ppcp-r-title-badge ' + `ppcp-r-title-badge--${ type }`;
|
||||
return <span className={ className }>{ text }</span>;
|
||||
return <span
|
||||
className={ className }
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: text,
|
||||
}}
|
||||
></span>;
|
||||
};
|
||||
|
||||
export const TITLE_BADGE_POSITIVE = 'positive';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue