diff --git a/src/Pages/IO_Management/EditIO/EditIO.jsx b/src/Pages/IO_Management/EditIO/EditIO.jsx index a93561e..8057e93 100644 --- a/src/Pages/IO_Management/EditIO/EditIO.jsx +++ b/src/Pages/IO_Management/EditIO/EditIO.jsx @@ -17,6 +17,7 @@ import FormInputMain from "../../../Components/FormInputMain"; import FormField from "./EditIOForm"; const EditIO = ({ isOpen, onClose }) => { + const { register, handleSubmit, diff --git a/src/Pages/IO_Management/EditIO/EditIOForm.jsx b/src/Pages/IO_Management/EditIO/EditIOForm.jsx index 1ec9669..52e0bfd 100644 --- a/src/Pages/IO_Management/EditIO/EditIOForm.jsx +++ b/src/Pages/IO_Management/EditIO/EditIOForm.jsx @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useContext } from "react"; import { Box, Input, @@ -8,9 +8,12 @@ import { FormLabel, FormErrorMessage, } from "@chakra-ui/react"; +import GlobalStateContext from "../../../Contexts/GlobalStateContext"; +import { useParams } from "react-router-dom"; const FormField = ({ field, register, errors }) => { - const { label, name, type, placeHolder, options, width } = field; + const { label, name, type, placeHolder, options, width } = field; + return ( diff --git a/src/Pages/IO_Management/ViewIO/HeaderModal/AmountInvested.jsx b/src/Pages/IO_Management/ViewIO/HeaderModal/AmountInvested.jsx index 1ec6bfa..f151fb5 100644 --- a/src/Pages/IO_Management/ViewIO/HeaderModal/AmountInvested.jsx +++ b/src/Pages/IO_Management/ViewIO/HeaderModal/AmountInvested.jsx @@ -1,5 +1,7 @@ import { + Box, Button, + Input, Modal, ModalBody, ModalCloseButton, @@ -7,6 +9,8 @@ import { ModalFooter, ModalHeader, ModalOverlay, + Text, + Textarea, } from "@chakra-ui/react"; const AmountInvested = ({ isOpen, onClose }) => { @@ -14,13 +18,45 @@ const AmountInvested = ({ isOpen, onClose }) => { - Investment + Amount Invested -

Amount Invested details go here...

+ + + Date + + + + + + Amount + + + + + + Comments + +