mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
♻️ Add prefix to CSS state-classes
This commit is contained in:
parent
193e046a9a
commit
54504b7591
15 changed files with 32 additions and 33 deletions
|
@ -1,17 +1,16 @@
|
|||
import classNames from 'classnames';
|
||||
|
||||
const Title = ( {
|
||||
children,
|
||||
altStyle = false,
|
||||
big = false,
|
||||
className = '',
|
||||
} ) => {
|
||||
const Title = ( { children, noCaps = false, big = false, className = '' } ) => {
|
||||
if ( ! children ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const elementClasses = classNames(
|
||||
'ppcp-r-settings-block__title',
|
||||
className,
|
||||
{
|
||||
'style-alt': altStyle,
|
||||
'style-big': big,
|
||||
'ppcp--no-caps': noCaps,
|
||||
'ppcp--big': big,
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue