mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-12 01:18:39 +08:00
Settings UI: Move Things To Do config data to a separate definition file. Add settings highlighting. Add todos dismissing.
This commit is contained in:
parent
51b2582589
commit
0daf56b2af
20 changed files with 612 additions and 300 deletions
|
@ -2,6 +2,7 @@ import classNames from 'classnames';
|
|||
import { Description, Header, Title, TitleExtra, Content } from './Elements';
|
||||
|
||||
const SettingsBlock = ( {
|
||||
id,
|
||||
className,
|
||||
children,
|
||||
title,
|
||||
|
@ -15,14 +16,18 @@ const SettingsBlock = ( {
|
|||
'ppcp--horizontal': horizontalLayout,
|
||||
} );
|
||||
|
||||
const props = {
|
||||
className: blockClassName,
|
||||
...( id && { id } ),
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={ blockClassName } id={ className }>
|
||||
<div { ...props }>
|
||||
<BlockTitle
|
||||
blockTitle={ title }
|
||||
blockSuffix={ titleSuffix }
|
||||
blockDescription={ description }
|
||||
/>
|
||||
|
||||
<Content asCard={ false }>{ children }</Content>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue