♻️ Start to unclutter SCSS a bit

This commit is contained in:
Philipp Stracker 2025-01-10 18:20:00 +01:00
parent 2a1da98b5f
commit 25887024a6
No known key found for this signature in database
12 changed files with 351 additions and 428 deletions

View file

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