File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/Contractor/Payments/CreatePayment Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { useState } from 'react'
2- import { action } from '@ladle/react '
2+ import { fn } from '@storybook/test '
33import type { Contractor } from '@gusto/embedded-api/models/components/contractor'
44import type { ContractorPayments } from '@gusto/embedded-api/models/operations/postv1companiescompanyidcontractorpaymentgroups'
55import { CreatePaymentPresentation } from './CreatePaymentPresentation'
@@ -112,8 +112,8 @@ function StoryWrapper({
112112 contractorPayments = { contractorPayments }
113113 paymentDate = { paymentDate }
114114 onPaymentDateChange = { setPaymentDate }
115- onSaveAndContinue = { action ( 'onSaveAndContinue' ) }
116- onEditContractor = { action ( 'onEditContractor' ) }
115+ onSaveAndContinue = { fn ( ) . mockName ( 'onSaveAndContinue' ) }
116+ onEditContractor = { fn ( ) . mockName ( 'onEditContractor' ) }
117117 totals = { totals }
118118 alerts = { { } }
119119 isLoading = { false }
You can’t perform that action at this time.
0 commit comments