mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
✨ Trigger disconnect modal via URL hash
This commit is contained in:
parent
12316b1022
commit
3a096b832d
1 changed files with 2 additions and 1 deletions
|
@ -3,10 +3,11 @@ import { Button, Modal, ToggleControl } from '@wordpress/components';
|
|||
import { useCallback, useState } from '@wordpress/element';
|
||||
|
||||
import { CommonHooks } from '../../../../../../data';
|
||||
import { useToggleState } from '../../../../../../hooks/useToggleState';
|
||||
import { HStack } from '../../../../../ReusableComponents/Stack';
|
||||
|
||||
const DisconnectButton = () => {
|
||||
const [ isOpen, setIsOpen ] = useState( false );
|
||||
const { isOpen, setIsOpen } = useToggleState( 'disconnect-merchant' );
|
||||
const [ resetFlag, setResetFlag ] = useState( false );
|
||||
const { disconnectMerchant } = CommonHooks.useDisconnectMerchant();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue