mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
♻️ Start to unclutter SCSS a bit
This commit is contained in:
parent
2a1da98b5f
commit
25887024a6
12 changed files with 351 additions and 428 deletions
|
@ -1,9 +1,9 @@
|
|||
const SettingsBlock = ( { className, children } ) => {
|
||||
const blockClassName = [ 'ppcp-r-settings-block', className ].filter(
|
||||
Boolean
|
||||
);
|
||||
import classNames from 'classnames';
|
||||
|
||||
return <div className={ blockClassName.join( ' ' ) }>{ children }</div>;
|
||||
const SettingsBlock = ( { className, children } ) => {
|
||||
const blockClassName = classNames( 'ppcp-r-settings-block', className );
|
||||
|
||||
return <div className={ blockClassName }>{ children }</div>;
|
||||
};
|
||||
|
||||
export default SettingsBlock;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue