Skip to content

Commit 2af67f1

Browse files
committed
fix: replace @ladle/react import with @storybook/test in CreatePaymentPresentation stories
1 parent cd7c389 commit 2af67f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState } from 'react'
2-
import { action } from '@ladle/react'
2+
import { fn } from '@storybook/test'
33
import type { Contractor } from '@gusto/embedded-api/models/components/contractor'
44
import type { ContractorPayments } from '@gusto/embedded-api/models/operations/postv1companiescompanyidcontractorpaymentgroups'
55
import { 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}

0 commit comments

Comments
 (0)