Skip to content

Commit b7742f5

Browse files
committed
refactor(NewVendor): remove unused validateField and VendorFormErrors import
1 parent f72a801 commit b7742f5

File tree

1 file changed

+2
-2
lines changed
  • Clients/src/presentation/components/Modals/NewVendor

1 file changed

+2
-2
lines changed

Clients/src/presentation/components/Modals/NewVendor/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ import {
5050
} from "../../../../application/hooks/useVendors";
5151
import { useModalKeyHandling } from "../../../../application/hooks/useModalKeyHandling";
5252
import { User } from "../../../../domain/types/User";
53-
import { AddNewVendorProps, VendorFormErrors } from "../../../../domain/interfaces/i.vendor";
53+
import { AddNewVendorProps } from "../../../../domain/interfaces/i.vendor";
5454
import { getAutocompleteStyles } from "../../../utils/inputStyles";
5555
import {
5656
DataSensitivity,
@@ -160,7 +160,7 @@ const AddNewVendor: React.FC<AddNewVendorProps> = ({
160160
}),
161161
[]
162162
);
163-
const { errors, validateAll, validateField, clearFieldError, resetErrors } = useFormValidation<typeof initialState>(validators);
163+
const { errors, validateAll, clearFieldError, resetErrors } = useFormValidation<typeof initialState>(validators);
164164
const [isSubmitting, setIsSubmitting] = useState(false);
165165
const [projectsLoaded, setProjectsLoaded] = useState(false); // Track if projects are loaded
166166
const [alert, setAlert] = useState<{

0 commit comments

Comments
 (0)