mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
✨ Add generic option to suppress separator lines
This commit is contained in:
parent
25887024a6
commit
406e8ebc98
2 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,9 @@
|
|||
import classNames from 'classnames';
|
||||
|
||||
const SettingsBlock = ( { className, children } ) => {
|
||||
const blockClassName = classNames( 'ppcp-r-settings-block', className );
|
||||
const SettingsBlock = ( { className, children, separatorAndGap = true } ) => {
|
||||
const blockClassName = classNames( 'ppcp-r-settings-block', className, {
|
||||
'no-gap': ! separatorAndGap,
|
||||
} );
|
||||
|
||||
return <div className={ blockClassName }>{ children }</div>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue