Fix `FormContext` type error in client/tasks/fills/steps/location.tsx (#37532)

* Fix FormContext type error

* Add changelog
This commit is contained in:
Chi-Hsuan Huang 2023-03-31 18:43:16 +08:00 committed by GitHub
parent deb1cde448
commit e553759ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import { __ } from '@wordpress/i18n';
import { Button } from '@wordpress/components';
import { COUNTRIES_STORE_NAME } from '@woocommerce/data';
import { Fragment } from '@wordpress/element';
import { Form, FormContext, Spinner } from '@woocommerce/components';
import { Form, FormContextType, Spinner } from '@woocommerce/components';
import { useSelect } from '@wordpress/data';
import { Status, Options } from 'wordpress__notices';
/**
@ -126,7 +126,7 @@ const StoreLocation = ( {
getInputProps,
handleSubmit,
setValue,
}: FormContext< FormValues > ) => (
}: FormContextType< FormValues > ) => (
<Fragment>
<StoreAddress
// @ts-expect-error return type doesn't match, but they do work. We should revisit and refactor them in a follow up issue.

View File

@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: Fix FormContext type error caused by #37257