/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Views/Components/Label
NameSizeModeActions
index.js6740644editdlrm
styles.module.scss4810644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/src/Views/Components/Label/index.js (674B)
import classNames from 'classnames'; import styles from './styles.module.scss'; const Label = ({type, text}) => { const labelClasses = classNames( styles.label, {[styles.error]: type === 'error' || type === 'failed'}, {[styles.warning]: type === 'warning'}, {[styles.notice]: type === 'notice'}, {[styles.success]: type === 'success'}, {[styles.info]: type === 'info'}, {[styles.http]: type.toUpperCase() === 'HTTP'} ); const labelText = text && text.length > 0 ? text : type.charAt(0).toUpperCase() + type.slice(1); return
{labelText}
; }; export default Label;