Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix FormChange signature
dominik-zeglenf329b8e094de
diff --git a/saleor/static/dashboard-next/hooks/useForm.ts b/saleor/static/dashboard-next/hooks/useForm.tsindex 8b1d27b8e6..9dfb0a6d1a 100644--- a/saleor/static/dashboard-next/hooks/useForm.ts+++ b/saleor/static/dashboard-next/hooks/useForm.ts@@ -12,10 +12,10 @@ export interface ChangeEvent<TName = string, TData = any> {};}-export type FormChange = (event: ChangeEvent<T>, cb?: () => void) => void;+export type FormChange<T> = (event: ChangeEvent<T>, cb?: () => void) => void;export interface UseFormResult<T> {- change: FormChange;+ change: FormChange<T>;data: T;errors: Record<string, string>;hasChanged: boolean;