diff --git a/client/src/components/NextUIFormikInput.tsx b/client/src/components/NextUIFormikInput.tsx
index cc670ee..97bd714 100644
--- a/client/src/components/NextUIFormikInput.tsx
+++ b/client/src/components/NextUIFormikInput.tsx
@@ -1,5 +1,7 @@
import { Input } from "@nextui-org/react";
import { useField } from "formik";
+import { useState } from "react";
+import { EyeIcon, EyeSlashIcon } from "../icons";
interface NextUIFormikInputProps {
label: string;
@@ -16,15 +18,31 @@ const NextUIFormikInput = ({
...props
}: NextUIFormikInputProps) => {
const [field, meta] = useField(props.name);
+ const [inputType, setInputType] = useState(props.type);
return (
+
+ >
+ ) : null
+ }
/>
);
};
diff --git a/client/src/icons.tsx b/client/src/icons.tsx
index cb12019..1ed7fb3 100644
--- a/client/src/icons.tsx
+++ b/client/src/icons.tsx
@@ -54,3 +54,46 @@ export const LockClosedIcon = () => {
);
};
+
+export const EyeSlashIcon = () => {
+ return (
+
+ );
+};
+
+export const EyeIcon = () => {
+ return (
+
+ );
+};