mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add messages, separate components, finish actions
This commit is contained in:
parent
40b1b0d280
commit
ed77ad63ca
13 changed files with 417 additions and 187 deletions
|
@ -1,6 +1,6 @@
|
|||
import { Button } from '@wordpress/components';
|
||||
import SettingsBlock from './SettingsBlock';
|
||||
import { Header, Title, Action, Description } from './SettingsBlockElements';
|
||||
import { Action, Description, Header, Title } from './SettingsBlockElements';
|
||||
|
||||
const ButtonSettingsBlock = ( { title, description, ...props } ) => (
|
||||
<SettingsBlock { ...props } className="ppcp-r-settings-block__button">
|
||||
|
@ -9,6 +9,9 @@ const ButtonSettingsBlock = ( { title, description, ...props } ) => (
|
|||
<Description>{ description }</Description>
|
||||
</Header>
|
||||
<Action>
|
||||
{ props.actionProps?.message && (
|
||||
<p>{ props.actionProps.message }</p>
|
||||
) }
|
||||
<Button
|
||||
isBusy={ props.actionProps?.isBusy }
|
||||
variant={ props.actionProps?.buttonType }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue