mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
🚧 Adjust architecture of ButtonSettingsBlock
This commit is contained in:
parent
b6720146eb
commit
d8ecb019de
2 changed files with 9 additions and 9 deletions
|
@ -1,14 +1,16 @@
|
|||
import { Button } from '@wordpress/components';
|
||||
|
||||
import SettingsBlock from '../SettingsBlock';
|
||||
import { Action, Description, Header, Title } from '../Elements';
|
||||
import { Action } from '../Elements';
|
||||
|
||||
const ButtonSettingsBlock = ( { title, description, ...props } ) => (
|
||||
<SettingsBlock { ...props } className="ppcp-r-settings-block__button">
|
||||
<Header>
|
||||
<Title>{ title }</Title>
|
||||
<Description>{ description }</Description>
|
||||
</Header>
|
||||
<SettingsBlock
|
||||
title={ title }
|
||||
headerDescription={ description }
|
||||
horizontalLayout={ true }
|
||||
className="ppcp-r-settings-block__button"
|
||||
{ ...props }
|
||||
>
|
||||
<Action>
|
||||
<Button
|
||||
isBusy={ props.actionProps?.isBusy }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue