Fix toggle animation issue

This commit is contained in:
Daniel Dudzic 2024-12-16 16:00:27 +01:00
parent 16ad84c244
commit 51613c3020
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
3 changed files with 49 additions and 48 deletions

View file

@ -1,13 +1,14 @@
const SettingsBlock = ( { className, components = [] } ) => {
const SettingsBlock = ( { className, components = [], children } ) => {
const blockClassName = [ 'ppcp-r-settings-block', className ].filter(
Boolean
);
return (
<div className={ blockClassName.join( ' ' ) }>
{ components.map( ( Component, index ) => (
<Component key={ index } />
) ) }
{ children ||
components.map( ( Component, index ) => (
<Component key={ index } />
) ) }
</div>
);
};