From 4a78f9374cbcddf127fc8dfd07f5bed8d5b04a1b Mon Sep 17 00:00:00 2001 From: siddheshmorewdi Date: Wed, 26 Jun 2024 17:45:13 +0530 Subject: [PATCH] updated --- src/Components/EmptySearchList.jsx | 2 +- src/Components/FormField.jsx | 94 +++++--- .../InvestmentCard/InvestmentCard.jsx | 219 ++++++++++-------- src/Contexts/GlobalStateProvider.jsx | 3 + src/Pages/IO_Management/CreateIO.jsx | 193 +++++++++++++-- src/Pages/IO_Management/ViewIO.jsx | 133 ++++++++++- .../Investor_Management/InvestorDetails.jsx | 35 +-- 7 files changed, 496 insertions(+), 183 deletions(-) diff --git a/src/Components/EmptySearchList.jsx b/src/Components/EmptySearchList.jsx index dc37c9e..f455898 100644 --- a/src/Components/EmptySearchList.jsx +++ b/src/Components/EmptySearchList.jsx @@ -13,7 +13,7 @@ const EmptySearchList = ({message}) => { > Dan Abramov {message} - Posts of rubix will appear here. + Posts of tanami will appear here. ) diff --git a/src/Components/FormField.jsx b/src/Components/FormField.jsx index dfa60cc..7005683 100644 --- a/src/Components/FormField.jsx +++ b/src/Components/FormField.jsx @@ -1,5 +1,5 @@ -import { FormControl, FormLabel, Input, Textarea } from '@chakra-ui/react'; -import React from 'react' +import { FormControl, FormLabel, Input, Textarea, Select, Checkbox, RadioGroup, Radio, Stack } from '@chakra-ui/react'; +import React from 'react'; import { Controller } from 'react-hook-form'; import { TiWarning } from 'react-icons/ti'; @@ -8,40 +8,82 @@ const FormField = ({ control, name, type = "text", + options = [], errors, isRequired, arabic, ...props }) => ( - // - // - + {label} { - return type === "textarea" ? ( -