Skip to content

Commit

Permalink
perf: Remove unused reset prop
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Mar 8, 2022
1 parent 6ae69c2 commit 18c9a67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/GiftCardOrCouponForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ const propTypes = components.GiftCardOrCouponForm.propTypes

type GiftCardOrCouponFormProps = {
children: ReactNode
reset?: boolean
onSubmit?: (response: { success: boolean }) => void
} & Omit<JSX.IntrinsicElements['form'], 'onSubmit'>

const GiftCardOrCouponForm: FunctionComponent<GiftCardOrCouponFormProps> = (
props
) => {
const { children, autoComplete = 'on', reset = false, onSubmit, ...p } = props
const { children, autoComplete = 'on', onSubmit, ...p } = props
const { validation, values } = useRapidForm()
const { setGiftCardOrCouponCode, order, errors, setOrderErrors } =
useContext(OrderContext)
Expand Down

0 comments on commit 18c9a67

Please sign in to comment.