mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
✨ Expose “setIsOpen” action for toggle hook
This commit is contained in:
parent
d28f4f0784
commit
12316b1022
1 changed files with 1 additions and 1 deletions
|
@ -46,5 +46,5 @@ export function useToggleState( id = '', initiallyOpen = null ) {
|
|||
[ isOpen ]
|
||||
);
|
||||
|
||||
return { isOpen, toggleOpen };
|
||||
return { isOpen, setIsOpen, toggleOpen };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue