mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
🚧 Adjust architecture of ButtonSettingsBlock
This commit is contained in:
parent
b6720146eb
commit
d8ecb019de
2 changed files with 9 additions and 9 deletions
|
@ -160,12 +160,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.ppcp-r-settings-block__button {
|
||||
display: flex;
|
||||
.ppcp--horizontal {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 50px;
|
||||
}
|
||||
|
||||
.ppcp-r-settings-block__accordion {
|
||||
|
|
|
@ -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