Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add test
dominik-zeglenaabc3aaebeee
diff --git a/package.json b/package.jsonindex c8fef3d890..456ff97c80 100644--- a/package.json+++ b/package.json@@ -186,6 +186,9 @@"jest": {"globals": {"ts-jest": {+ "diagnostics": {+ "warnOnly": true+ },"tsConfig": "tsconfig.json"}},diff --git a/saleor/static/dashboard-next/hooks/useModalDialogErrors.ts b/saleor/static/dashboard-next/hooks/useModalDialogErrors.tsdeleted file mode 100644index 59c9cdb4ee..0000000000--- a/saleor/static/dashboard-next/hooks/useModalDialogErrors.ts+++ /dev/null@@ -1,22 +0,0 @@-import { useState } from "react";--import useStateFromProps from "./useStateFromProps";--function useModalDialogErrors<TError>(- errors: TError[],- open: boolean-): TError[] {- const [state, setState] = useStateFromProps(errors);- const [prevOpenState, setPrevOpenstate] = useState(open);-- if (open !== prevOpenState) {- setPrevOpenstate(open);- if (!open) {- setState([]);- }- }-- return state;-}--export default useModalDialogErrors;