Merge pull request #2940 from woocommerce/PCP-3930-Make-the-webhook-resubscribe/simulate-logic-usable-in-React-application

This commit is contained in:
Narek Zakarian 2024-12-24 17:47:57 +04:00 committed by GitHub
commit 38e268c68f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 637 additions and 176 deletions

View file

@ -1 +1,3 @@
export { default as openSignup } from './Icons/open-signup';
export const NOTIFICATION_SUCCESS = '✔️';
export const NOTIFICATION_ERROR = '❌';

View file

@ -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">
@ -10,6 +10,7 @@ const ButtonSettingsBlock = ( { title, description, ...props } ) => (
</Header>
<Action>
<Button
isBusy={ props.actionProps?.isBusy }
variant={ props.actionProps?.buttonType }
onClick={
props.actionProps?.callback