Add the superscript element

This commit is contained in:
Narek Zakarian 2024-11-05 19:21:01 +04:00
parent 749ce8b3f2
commit 0caf433965
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
3 changed files with 41 additions and 9 deletions

View file

@ -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';