mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Add todo item click handler
This commit is contained in:
parent
3ec41d47ae
commit
bdb72d7ad0
2 changed files with 11 additions and 2 deletions
|
@ -10,6 +10,7 @@ import FeatureSettingsBlock from '../../ReusableComponents/SettingsBlocks/Featur
|
|||
import { TITLE_BADGE_POSITIVE } from '../../ReusableComponents/TitleBadge';
|
||||
import { useMerchantInfo } from '../../../data/common/hooks';
|
||||
import { STORE_NAME } from '../../../data/common';
|
||||
import { updateQueryString } from '../../../utils/navigation';
|
||||
|
||||
const TabOverview = () => {
|
||||
const [ todosData ] = useState( todosDataDefault );
|
||||
|
@ -188,6 +189,10 @@ const todosDataDefault = [
|
|||
isCompleted: () => {
|
||||
return false;
|
||||
},
|
||||
onClick: ( event ) => {
|
||||
event.preventDefault();
|
||||
updateQueryString( { panel: 'payment-methods' } );
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'enable_credit_debit_cards',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue