updated image loading
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import { Form, Formik, Field } from "formik";
|
||||
import FormGroup from "../components/FormGroup";
|
||||
import type { NPEDFieldType } from "../../../types/types";
|
||||
import { useNPEDAuth } from "../../../hooks/useNPEDAuh";
|
||||
|
||||
const NPEDFields = () => {
|
||||
const { signIn, isError } = useNPEDAuth();
|
||||
|
||||
const initialValues = {
|
||||
username: "",
|
||||
password: "",
|
||||
@@ -10,7 +13,8 @@ const NPEDFields = () => {
|
||||
};
|
||||
|
||||
const handleSubmit = (values: NPEDFieldType) => {
|
||||
alert(JSON.stringify(values));
|
||||
console.log(isError);
|
||||
signIn(values);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user