update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Box, Image, Text } from "@chakra-ui/react"
|
||||
// import EmptySearchListImage from "../assets/empty_state_empty_folder.svg"
|
||||
import EmptySearchListImage from "../assets/EmptySearchList.svg"
|
||||
import EmptySearchListImage from "../assets/EmptySearchList.png"
|
||||
|
||||
const EmptySearchList = ({message}) => {
|
||||
return (
|
||||
@@ -11,7 +11,7 @@ const EmptySearchList = ({message}) => {
|
||||
flexDirection={'column'}
|
||||
w={"100%"} h={"80vh"}
|
||||
>
|
||||
<Image w={200} mb={8} h={200} src={EmptySearchListImage} alt='Dan Abramov' />
|
||||
<Image w={200} mb={8} src={EmptySearchListImage} alt='empty list' />
|
||||
<Text className=" fw-bold fs-5" >{message}</Text>
|
||||
<Text as={'p'} className="web-text-medium">Posts of tanami will appear here.</Text>
|
||||
|
||||
|
||||
@@ -47,12 +47,12 @@ const FormField = ({
|
||||
w={width ? width : "49%"}
|
||||
isInvalid={errors[name]}
|
||||
isRequired={isRequired}
|
||||
className="mb-3"
|
||||
mb={2}
|
||||
>
|
||||
<FormLabel
|
||||
textAlign={arabic ? "right" : "left"}
|
||||
fontSize={"sm"}
|
||||
fontWeight={"400"}
|
||||
fontSize={"xs"}
|
||||
color={"gray.600"}
|
||||
>
|
||||
{label}
|
||||
</FormLabel>
|
||||
@@ -70,10 +70,11 @@ const FormField = ({
|
||||
{...field}
|
||||
{...props}
|
||||
cursor={"pointer"}
|
||||
fontSize={'sm'}
|
||||
placeholder={placeHolder ? placeHolder : label}
|
||||
textAlign={arabic ? "right" : "left"}
|
||||
_placeholder={{ fontSize: "xs" }}
|
||||
borderRadius={"4px"}
|
||||
_placeholder={{ fontSize: "sm" }}
|
||||
rounded={'sm'}
|
||||
>
|
||||
{options.map((option, index) => (
|
||||
<option key={index} value={option.value}>
|
||||
@@ -91,8 +92,8 @@ const FormField = ({
|
||||
{...props}
|
||||
placeholder={placeHolder ? placeHolder : label}
|
||||
textAlign={arabic ? "right" : "left"}
|
||||
_placeholder={{ fontSize: "xs" }}
|
||||
borderRadius={"4px"}
|
||||
_placeholder={{ fontSize: "sm" }}
|
||||
rounded={'sm'}
|
||||
resize={"none"}
|
||||
/>
|
||||
);
|
||||
@@ -359,9 +360,9 @@ const FormField = ({
|
||||
{...field}
|
||||
{...props}
|
||||
placeholder={placeHolder ? placeHolder : label}
|
||||
borderRadius={"4px"}
|
||||
rounded={'sm'}
|
||||
textAlign={arabic || type === "number" ? "right" : "left"}
|
||||
_placeholder={{ fontSize: "xs" }}
|
||||
_placeholder={{ fontSize: "sm" }}
|
||||
min={type === "date" ? today : undefined}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -17,15 +17,15 @@ const FormInputMain = ({
|
||||
w,
|
||||
}) => {
|
||||
return (
|
||||
<form onSubmit={onSubmit}>
|
||||
<Box mt={0} as="form" onSubmit={onSubmit}>
|
||||
{Object.entries(groupedFields).map(([section, fields], index) => (
|
||||
<Box key={section} mt={4}>
|
||||
<Heading as="h6" size="xs" mx={5} fontWeight={"500"}>
|
||||
<Box key={section} mt={2}>
|
||||
<Heading as="h6" size="xs" mx={5} my={0} fontWeight={"500"}>
|
||||
{/* <ArrowBackIcon fontSize={'lg'} /> */}
|
||||
{section}
|
||||
</Heading>
|
||||
<Box display={"flex"} gap={0}>
|
||||
<Box
|
||||
as="span"
|
||||
width={"100%"}
|
||||
p={p ? p : 5}
|
||||
display={"flex"}
|
||||
@@ -78,14 +78,13 @@ const FormInputMain = ({
|
||||
)
|
||||
)}
|
||||
</Box>
|
||||
</Box>
|
||||
{index < Object.entries(groupedFields).length - 1 && <Divider />}
|
||||
</Box>
|
||||
))}
|
||||
|
||||
{children}
|
||||
|
||||
<Box display={"flex"} justifyContent={"end"} mb={5}>
|
||||
<Box display={"flex"} justifyContent={"end"} mt={2} >
|
||||
<Box display={"flex"} justifyContent={"end"} p={2} w={"49%"} gap={4}>
|
||||
{onCancle && (
|
||||
<Button
|
||||
@@ -110,7 +109,7 @@ const FormInputMain = ({
|
||||
</Button>
|
||||
</Box>
|
||||
</Box>
|
||||
</form>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -18,6 +18,26 @@ const getRandomDate = (start, end) => {
|
||||
const startDate = new Date(2020, 0, 1); // January 1, 2020
|
||||
const endDate = new Date(); // Current date
|
||||
|
||||
|
||||
function generateUniqueId() {
|
||||
const letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
||||
const digits = '0123456789';
|
||||
|
||||
let id = '';
|
||||
|
||||
// Generate three random uppercase letters
|
||||
for (let i = 0; i < 3; i++) {
|
||||
id += letters[Math.floor(Math.random() * letters.length)];
|
||||
}
|
||||
|
||||
// Generate seven random digits
|
||||
for (let i = 0; i < 7; i++) {
|
||||
id += digits[Math.floor(Math.random() * digits.length)];
|
||||
}
|
||||
|
||||
return id;
|
||||
}
|
||||
|
||||
const GlobalStateProvider = ({ children }) => {
|
||||
const [isAuthenticate, setIsAuthenticate] = useState(false);
|
||||
const [memberIfo, setMemberInfo] = useState();
|
||||
@@ -1437,7 +1457,7 @@ const GlobalStateProvider = ({ children }) => {
|
||||
|
||||
const [ IODetails, setIODetails ] = useState([
|
||||
{
|
||||
id:uuidv4(),
|
||||
id:generateUniqueId(),
|
||||
closingDate: "Fri Jul 26 2024 00:00:00 GMT+0530 (India Standard Time)",
|
||||
discription: "Animi molestias cup",
|
||||
discriptionArabic: "Ut aliquam corporis",
|
||||
@@ -1446,14 +1466,14 @@ const GlobalStateProvider = ({ children }) => {
|
||||
holdingPeriod: 47,
|
||||
ioName: "Harlan Head",
|
||||
ioNameArabic: "Ulric Torres",
|
||||
ioStatus: "open",
|
||||
ioStatus: "Open",
|
||||
maxInvestment: 80,
|
||||
minInvestment: 77,
|
||||
sponserName: "Ella Fitzgerald",
|
||||
typeName: "Commercial"
|
||||
},
|
||||
{
|
||||
id:uuidv4(),
|
||||
id:generateUniqueId(),
|
||||
closingDate: "Wed Sep 18 2024 00:00:00 GMT+0530 (India Standard Time)",
|
||||
discription: "Voluptas necessitatibus",
|
||||
discriptionArabic: "Nemo enim ipsam",
|
||||
@@ -1462,14 +1482,14 @@ const GlobalStateProvider = ({ children }) => {
|
||||
holdingPeriod: 30,
|
||||
ioName: "John Doe",
|
||||
ioNameArabic: "Ali Ahmed",
|
||||
ioStatus: "closed",
|
||||
ioStatus: "Closed",
|
||||
maxInvestment: 95,
|
||||
minInvestment: 60,
|
||||
sponserName: "Louis Armstrong",
|
||||
typeName: "Residential"
|
||||
},
|
||||
{
|
||||
id:uuidv4(),
|
||||
id:generateUniqueId(),
|
||||
closingDate: "Mon Oct 21 2024 00:00:00 GMT+0530 (India Standard Time)",
|
||||
discription: "Tempora incidunt",
|
||||
discriptionArabic: "Eius modi tempora",
|
||||
@@ -1478,14 +1498,14 @@ const GlobalStateProvider = ({ children }) => {
|
||||
holdingPeriod: 60,
|
||||
ioName: "Jane Smith",
|
||||
ioNameArabic: "Fatima Al-Hassan",
|
||||
ioStatus: "open",
|
||||
ioStatus: "Pending",
|
||||
maxInvestment: 100,
|
||||
minInvestment: 85,
|
||||
sponserName: "Duke Ellington",
|
||||
typeName: "Industrial"
|
||||
},
|
||||
{
|
||||
id:uuidv4(),
|
||||
id:generateUniqueId(),
|
||||
closingDate: "Fri Nov 15 2024 00:00:00 GMT+0530 (India Standard Time)",
|
||||
discription: "Dolor sit amet",
|
||||
discriptionArabic: "Consectetur adipiscing elit",
|
||||
@@ -1494,14 +1514,14 @@ const GlobalStateProvider = ({ children }) => {
|
||||
holdingPeriod: 90,
|
||||
ioName: "Alice Johnson",
|
||||
ioNameArabic: "Layla Khalid",
|
||||
ioStatus: "open",
|
||||
ioStatus: "Open",
|
||||
maxInvestment: 70,
|
||||
minInvestment: 50,
|
||||
sponserName: "Billie Holiday",
|
||||
typeName: "Commercial"
|
||||
},
|
||||
{
|
||||
id:uuidv4(),
|
||||
id:generateUniqueId(),
|
||||
closingDate: "Tue Dec 10 2024 00:00:00 GMT+0530 (India Standard Time)",
|
||||
discription: "Consectetur adipisci",
|
||||
discriptionArabic: "Elit sed do eiusmod",
|
||||
@@ -1510,7 +1530,7 @@ const GlobalStateProvider = ({ children }) => {
|
||||
holdingPeriod: 45,
|
||||
ioName: "Robert Brown",
|
||||
ioNameArabic: "Omar Hussain",
|
||||
ioStatus: "closed",
|
||||
ioStatus: "Closed",
|
||||
maxInvestment: 90,
|
||||
minInvestment: 70,
|
||||
sponserName: "Miles Davis",
|
||||
|
||||
@@ -236,7 +236,7 @@ const InvestmentDocument = ({ control, errors, enableNextTab, index }) => {
|
||||
size="sm"
|
||||
fontSize="xs"
|
||||
rounded="sm"
|
||||
colorScheme="green"
|
||||
color="green"
|
||||
>
|
||||
Add document
|
||||
</Button>
|
||||
|
||||
@@ -72,7 +72,7 @@ const InvestmentDocuments = ({ id, isOpen, onClose, firstField, create, setCreat
|
||||
};
|
||||
|
||||
setCreate((prevCreate) => [...prevCreate, newDocument]);
|
||||
navigate(" ");
|
||||
onClose()
|
||||
};
|
||||
|
||||
const handleFileChange = (event) => {
|
||||
@@ -136,7 +136,7 @@ const InvestmentDocuments = ({ id, isOpen, onClose, firstField, create, setCreat
|
||||
size="sm"
|
||||
/>
|
||||
{errors.fileName && (
|
||||
<Text fontSize="sm" color="red">
|
||||
<Text fontSize="xs" color="red">
|
||||
{errors.fileName.message}
|
||||
</Text>
|
||||
)}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import {
|
||||
Box,
|
||||
Button,
|
||||
FormControl,
|
||||
FormLabel,
|
||||
Input,
|
||||
Modal,
|
||||
ModalBody,
|
||||
@@ -18,32 +20,43 @@ const AmountInvested = ({ isOpen, onClose }) => {
|
||||
<Modal isOpen={isOpen} onClose={onClose}>
|
||||
<ModalOverlay />
|
||||
<ModalContent>
|
||||
<ModalHeader>Amount Invested</ModalHeader>
|
||||
<ModalHeader fontSize={'md'}>Amount Invested</ModalHeader>
|
||||
<ModalCloseButton />
|
||||
<ModalBody>
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Date
|
||||
</Text>
|
||||
</FormLabel>
|
||||
<Input
|
||||
placeholder="Select Date"
|
||||
size="md"
|
||||
type="date"
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
fontSize={"sm"}
|
||||
focusBorderColor="forestGreen.300"
|
||||
type="date"
|
||||
/>
|
||||
</Box>
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<Text as={"label"}>Amount</Text>
|
||||
<Input placeholder="Enter amount" fontSize={"sm"} />
|
||||
</Box>
|
||||
<FormControl mb={"15px"} >
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>Amount</FormLabel>
|
||||
<Input
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
textAlign={'end'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"} placeholder="$00.00" />
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Comments
|
||||
</Text>
|
||||
<Textarea placeholder="Write Comments" fontSize={"sm"} />
|
||||
</Box>
|
||||
</FormLabel>
|
||||
<Textarea
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"} placeholder="Write Comments" />
|
||||
</FormControl>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button
|
||||
@@ -53,10 +66,14 @@ const AmountInvested = ({ isOpen, onClose }) => {
|
||||
_hover={{
|
||||
bg: "hsl(139deg 98.99% 26.59%)",
|
||||
}}
|
||||
size={'sm'}
|
||||
rounded={"sm"}
|
||||
>
|
||||
Save
|
||||
</Button>
|
||||
<Button mr={3} onClick={onClose}>
|
||||
<Button
|
||||
size={'sm'}
|
||||
rounded={"sm"} mr={3} onClick={onClose}>
|
||||
Close
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import {
|
||||
Box,
|
||||
Button,
|
||||
FormControl,
|
||||
FormLabel,
|
||||
Input,
|
||||
Modal,
|
||||
ModalBody,
|
||||
@@ -18,32 +20,43 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
|
||||
<Modal isOpen={isOpen} onClose={onClose}>
|
||||
<ModalOverlay />
|
||||
<ModalContent>
|
||||
<ModalHeader>Distribution To investors</ModalHeader>
|
||||
<ModalHeader fontSize={"md"}>Distribution To investors</ModalHeader>
|
||||
<ModalCloseButton />
|
||||
<ModalBody>
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Date
|
||||
</Text>
|
||||
</FormLabel>
|
||||
<Input
|
||||
placeholder="Select Date"
|
||||
size="md"
|
||||
type="date"
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"}
|
||||
type="date"
|
||||
/>
|
||||
</Box>
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<Text as={"label"}>Amount</Text>
|
||||
<Input placeholder="Enter amount" fontSize={"sm"} />
|
||||
</Box>
|
||||
<FormControl mb={"15px"} >
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>Amount</FormLabel>
|
||||
<Input
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
textAlign={'end'}
|
||||
fontSize={"sm"} placeholder="$00.00" />
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Comments
|
||||
</Text>
|
||||
<Textarea placeholder="Write Comments" fontSize={"sm"} />
|
||||
</Box>
|
||||
</FormLabel>
|
||||
<Textarea
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"} placeholder="Write Comments" />
|
||||
</FormControl>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button
|
||||
@@ -53,10 +66,14 @@ const DistributionInvestor = ({ isOpen, onClose }) => {
|
||||
_hover={{
|
||||
bg: "hsl(139deg 98.99% 26.59%)",
|
||||
}}
|
||||
size={'sm'}
|
||||
rounded={"sm"}
|
||||
>
|
||||
Save
|
||||
</Button>
|
||||
<Button mr={3} onClick={onClose}>
|
||||
<Button
|
||||
size={'sm'}
|
||||
rounded={"sm"} mr={3} onClick={onClose}>
|
||||
Close
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import {
|
||||
Box,
|
||||
Button,
|
||||
FormControl,
|
||||
FormLabel,
|
||||
Input,
|
||||
Modal,
|
||||
ModalBody,
|
||||
@@ -18,32 +20,43 @@ const DistributionSponsor = ({ isOpen, onClose }) => {
|
||||
<Modal isOpen={isOpen} onClose={onClose}>
|
||||
<ModalOverlay />
|
||||
<ModalContent>
|
||||
<ModalHeader>Distribution from Sponsors</ModalHeader>
|
||||
<ModalHeader fontSize={'md'}>Distribution from Sponsors</ModalHeader>
|
||||
<ModalCloseButton />
|
||||
<ModalBody>
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Date
|
||||
</Text>
|
||||
</FormLabel>
|
||||
<Input
|
||||
placeholder="Select Date"
|
||||
size="md"
|
||||
type="date"
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
fontSize={"sm"}
|
||||
focusBorderColor="forestGreen.300"
|
||||
type="date"
|
||||
/>
|
||||
</Box>
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<Text as={"label"}>Amount</Text>
|
||||
<Input placeholder="Enter amount" fontSize={"sm"} />
|
||||
</Box>
|
||||
<FormControl mb={"15px"} >
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>Amount</FormLabel>
|
||||
<Input
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
textAlign={'end'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"} placeholder="$00.00" />
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Comments
|
||||
</Text>
|
||||
<Textarea placeholder="Write Comments" fontSize={"sm"} />
|
||||
</Box>
|
||||
</FormLabel>
|
||||
<Textarea
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"} placeholder="Write Comments" />
|
||||
</FormControl>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button
|
||||
@@ -53,10 +66,14 @@ const DistributionSponsor = ({ isOpen, onClose }) => {
|
||||
_hover={{
|
||||
bg: "hsl(139deg 98.99% 26.59%)",
|
||||
}}
|
||||
size={'sm'}
|
||||
rounded={"sm"}
|
||||
>
|
||||
Save
|
||||
</Button>
|
||||
<Button mr={3} onClick={onClose}>
|
||||
<Button
|
||||
size={'sm'}
|
||||
rounded={"sm"} mr={3} onClick={onClose}>
|
||||
Close
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import {
|
||||
Box,
|
||||
Button,
|
||||
FormControl,
|
||||
FormLabel,
|
||||
Input,
|
||||
InputGroup,
|
||||
Modal,
|
||||
@@ -19,32 +21,43 @@ const FeesExpenses = ({ isOpen, onClose }) => {
|
||||
<Modal isOpen={isOpen} onClose={onClose}>
|
||||
<ModalOverlay />
|
||||
<ModalContent>
|
||||
<ModalHeader>Fees & Expenses</ModalHeader>
|
||||
<ModalHeader fontSize={'md'}>Fees & Expenses</ModalHeader>
|
||||
<ModalCloseButton />
|
||||
<ModalBody>
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Date
|
||||
</Text>
|
||||
</FormLabel>
|
||||
<Input
|
||||
placeholder="Select Date"
|
||||
size="md"
|
||||
type="date"
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"}
|
||||
type="date"
|
||||
/>
|
||||
</Box>
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<Text as={"label"}>Amount</Text>
|
||||
<Input placeholder="Enter amount" fontSize={"sm"} />
|
||||
</Box>
|
||||
<FormControl mb={"15px"} >
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>Amount</FormLabel>
|
||||
<Input
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
textAlign={'end'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"} placeholder="$00.00" />
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Comments
|
||||
</Text>
|
||||
<Textarea placeholder="Write Comments" fontSize={"sm"} />
|
||||
</Box>
|
||||
</FormLabel>
|
||||
<Textarea
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"} placeholder="Write Comments" />
|
||||
</FormControl>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button
|
||||
@@ -54,10 +67,14 @@ const FeesExpenses = ({ isOpen, onClose }) => {
|
||||
_hover={{
|
||||
bg: "hsl(139deg 98.99% 26.59%)",
|
||||
}}
|
||||
size={'sm'}
|
||||
rounded={"sm"}
|
||||
>
|
||||
Save
|
||||
</Button>
|
||||
<Button mr={3} onClick={onClose}>
|
||||
<Button
|
||||
size={'sm'}
|
||||
rounded={"sm"} mr={3} onClick={onClose}>
|
||||
Close
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import {
|
||||
Box,
|
||||
Button,
|
||||
FormControl,
|
||||
FormLabel,
|
||||
Input,
|
||||
Modal,
|
||||
ModalBody,
|
||||
@@ -18,32 +20,43 @@ const UpdateIONav = ({ isOpen, onClose }) => {
|
||||
<Modal isOpen={isOpen} onClose={onClose}>
|
||||
<ModalOverlay />
|
||||
<ModalContent>
|
||||
<ModalHeader>Update iO NAV</ModalHeader>
|
||||
<ModalHeader fontSize={'md'}>Update iO NAV</ModalHeader>
|
||||
<ModalCloseButton />
|
||||
<ModalBody>
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Date
|
||||
</Text>
|
||||
</FormLabel>
|
||||
<Input
|
||||
placeholder="Select Date"
|
||||
size="md"
|
||||
type="date"
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
fontSize={"sm"}
|
||||
focusBorderColor="forestGreen.300"
|
||||
type="date"
|
||||
/>
|
||||
</Box>
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<Text as={"label"}>Amount</Text>
|
||||
<Input placeholder="Enter amount" fontSize={"sm"} />
|
||||
</Box>
|
||||
<FormControl mb={"15px"} >
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>Amount</FormLabel>
|
||||
<Input
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
textAlign={'end'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"} placeholder="$00.00" />
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Comments
|
||||
</Text>
|
||||
<Textarea placeholder="Write Comments" fontSize={"sm"} />
|
||||
</Box>
|
||||
</FormLabel>
|
||||
<Textarea
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"} placeholder="Write Comments" />
|
||||
</FormControl>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button
|
||||
@@ -53,10 +66,14 @@ const UpdateIONav = ({ isOpen, onClose }) => {
|
||||
_hover={{
|
||||
bg: "hsl(139deg 98.99% 26.59%)",
|
||||
}}
|
||||
size={'sm'}
|
||||
rounded={"sm"}
|
||||
>
|
||||
Save
|
||||
</Button>
|
||||
<Button mr={3} onClick={onClose}>
|
||||
<Button
|
||||
size={'sm'}
|
||||
rounded={"sm"} mr={3} onClick={onClose}>
|
||||
Close
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import {
|
||||
Box,
|
||||
Button,
|
||||
FormControl,
|
||||
FormLabel,
|
||||
Input,
|
||||
Modal,
|
||||
ModalBody,
|
||||
@@ -18,32 +20,43 @@ const UpdateIOStatus = ({ isOpen, onClose }) => {
|
||||
<Modal isOpen={isOpen} onClose={onClose}>
|
||||
<ModalOverlay />
|
||||
<ModalContent>
|
||||
<ModalHeader>Update IO Status</ModalHeader>
|
||||
<ModalHeader fontSize={'md'}>Update IO Status</ModalHeader>
|
||||
<ModalCloseButton />
|
||||
<ModalBody>
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Date
|
||||
</Text>
|
||||
</FormLabel>
|
||||
<Input
|
||||
placeholder="Select Date"
|
||||
size="md"
|
||||
type="date"
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
fontSize={"sm"}
|
||||
type="date"
|
||||
focusBorderColor="forestGreen.300"
|
||||
/>
|
||||
</Box>
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<Text as={"label"}>Amount</Text>
|
||||
<Input placeholder="Enter amount" fontSize={"sm"} />
|
||||
</Box>
|
||||
<FormControl mb={"15px"} >
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>Amount</FormLabel>
|
||||
<Input
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
textAlign={'end'}
|
||||
focusBorderColor="forestGreen.300"
|
||||
fontSize={"sm"} placeholder="$00.00" />
|
||||
</FormControl>
|
||||
|
||||
<Box mb={"15px"}>
|
||||
<Text as={"label"} fontSize={"sm"} fontWeight={"bold"}>
|
||||
<FormControl mb={"15px"}>
|
||||
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
|
||||
Comments
|
||||
</Text>
|
||||
<Textarea placeholder="Write Comments" fontSize={"sm"} />
|
||||
</Box>
|
||||
</FormLabel>
|
||||
<Textarea
|
||||
size="sm"
|
||||
rounded={'sm'}
|
||||
colorScheme={'green'}
|
||||
fontSize={"sm"} placeholder="Write Comments" />
|
||||
</FormControl>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button
|
||||
@@ -53,10 +66,14 @@ const UpdateIOStatus = ({ isOpen, onClose }) => {
|
||||
_hover={{
|
||||
bg: "hsl(139deg 98.99% 26.59%)",
|
||||
}}
|
||||
size={'sm'}
|
||||
rounded={"sm"}
|
||||
>
|
||||
Save
|
||||
</Button>
|
||||
<Button mr={3} onClick={onClose}>
|
||||
<Button
|
||||
size={'sm'}
|
||||
rounded={"sm"} mr={3} onClick={onClose}>
|
||||
Close
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
|
||||
@@ -63,10 +63,10 @@ const ViewIOTable = () => {
|
||||
|
||||
// ====================================================[Table Setup]================================================================
|
||||
const tableHeadRow = [
|
||||
"Sr.no",
|
||||
// "Sr.no",
|
||||
"Deal ID",
|
||||
"IO Name",
|
||||
"Sponser Name",
|
||||
"Investment Type",
|
||||
"IO status",
|
||||
"Action",
|
||||
];
|
||||
@@ -84,6 +84,7 @@ const ViewIOTable = () => {
|
||||
// });
|
||||
// }, 300);
|
||||
|
||||
console.log(IODetails);
|
||||
// ====================================================[Table Filter]================================================================
|
||||
const filteredData = IODetails.filter((item) => {
|
||||
// Filter by name (case insensitive)
|
||||
@@ -126,6 +127,13 @@ const ViewIOTable = () => {
|
||||
{item.id}
|
||||
</Text>
|
||||
),
|
||||
"IO Name": (
|
||||
<Box w={"auto"} isTruncated={true}>
|
||||
<Text as={"span"} color={"teal.900"} fontWeight={"500"}>
|
||||
{item.ioName}
|
||||
</Text>
|
||||
</Box>
|
||||
),
|
||||
"Sponser Name": (
|
||||
<Box w={"auto"} isTruncated={true}>
|
||||
<Text as={"span"} color={"teal.900"} fontWeight={"500"}>
|
||||
@@ -133,27 +141,26 @@ const ViewIOTable = () => {
|
||||
</Text>
|
||||
</Box>
|
||||
),
|
||||
"Investment Type": (
|
||||
<Box w={"auto"} isTruncated={true}>
|
||||
<Text as={"span"} color={"teal.900"} fontWeight={"500"}>
|
||||
{item.typeName}
|
||||
</Text>
|
||||
</Box>
|
||||
),
|
||||
"IO status": (
|
||||
<Box w={"auto"} isTruncated={true}>
|
||||
<Badge
|
||||
rounded={'md'}
|
||||
pt={0.5}
|
||||
pb={0.5}
|
||||
ps={4}
|
||||
pe={4}
|
||||
textTransform={'none'}
|
||||
color={
|
||||
item.ioStatus === "open"
|
||||
item.ioStatus === "Open"
|
||||
? "#00B69B"
|
||||
: item.ioStatus === "pending"
|
||||
: item.ioStatus === "Pending"
|
||||
? "#6226EF"
|
||||
: "#EF3826"
|
||||
}
|
||||
colorScheme={
|
||||
item.ioStatus === "open"
|
||||
item.ioStatus === "Open"
|
||||
? "green"
|
||||
: item.ioStatus === "pending"
|
||||
: item.ioStatus === "Pending"
|
||||
? "purple"
|
||||
: "red"
|
||||
}
|
||||
@@ -164,7 +171,7 @@ const ViewIOTable = () => {
|
||||
),
|
||||
|
||||
Action: (
|
||||
<Box display={"flex"} justifyContent={"space-evenly"}>
|
||||
<Box display={"flex"} justifyContent={"center"} gap={2}>
|
||||
<Tooltip
|
||||
rounded={"sm"}
|
||||
fontSize={"xs"}
|
||||
|
||||
@@ -29,9 +29,9 @@ import ViewIOnav from "./ViewIOnav";
|
||||
import ViewDistribution from "./ViewDistribution";
|
||||
import InvestmentDocument from "../CreateIO/InvestmentDocument";
|
||||
import KeyMerits from "../CreateIO/KeyMerits";
|
||||
import IOArtifacts from "../CreateIO/IOArtifacts";
|
||||
import Investors from "../CreateIO/Investors"
|
||||
import EditIO from "../EditIO/EditIO";
|
||||
import IOArtifacts from "../CreateIO/IOArtifacts";
|
||||
|
||||
|
||||
const ViewIOdata = () => {
|
||||
@@ -84,19 +84,6 @@ const ViewIOdata = () => {
|
||||
</Box>
|
||||
<Button onClick={()=> navigate(`/create-io/${params?.id}`)} ps={4} pe={4} colorScheme="green" rounded={"sm"} size={'xs'}>Edit</Button>
|
||||
</TabList>
|
||||
<Box p={3} width={"100%"} textAlign={"right"}>
|
||||
<Button
|
||||
bg={"hsla(139, 100%, 14%, 1)"}
|
||||
color={"#fff"}
|
||||
_hover={{
|
||||
bg: "hsl(139deg 98.99% 26.59%)",
|
||||
}}
|
||||
onClick={onOpen}
|
||||
>
|
||||
Edit
|
||||
</Button>
|
||||
<EditIO isOpen={isOpen} onClose={onClose} />
|
||||
</Box>
|
||||
<TabPanels>
|
||||
{tabs.map(({ content }, index) => (
|
||||
<TabPanel key={index}>{content}</TabPanel>
|
||||
|
||||
@@ -19,7 +19,9 @@ import {
|
||||
MenuItemOption,
|
||||
MenuGroup,
|
||||
MenuOptionGroup,
|
||||
MenuDivider,Badge, Box
|
||||
MenuDivider,
|
||||
Badge,
|
||||
Box,
|
||||
} from "@chakra-ui/react";
|
||||
import header from "../../../assets/IOheader.png";
|
||||
import { HiDotsVertical } from "react-icons/hi";
|
||||
@@ -94,43 +96,66 @@ const ViewIOdataHeader = () => {
|
||||
// bgGradient='linear(to-r, #caf5d8, #b3e5fc)'
|
||||
// bgGradient='linear(to-r, #ffd54f, #caf5d8)'
|
||||
// bgGradient='linear(to-r, #caf5d8, #a8e6cf)'
|
||||
boxShadow={'md'}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
boxShadow={"md"}
|
||||
paddingRight={"10px"}
|
||||
borderRadius={"10px"}
|
||||
position={"relative"}
|
||||
>
|
||||
<Box p={1}>
|
||||
<Image h={82} src={header} />
|
||||
</Box>
|
||||
<Box display={"flex"} flexDirection={'column'} gap={2}>
|
||||
<Text as={'span'} fontSize={"sm"} fontWeight={"500"}>KKR Private Equity Fund (K-Prime)</Text>
|
||||
<Text as={'span'} fontSize={"sm"} fontWeight={"500"}>sponsor name: KKR</Text>
|
||||
<Box display={"flex"} flexDirection={"column"} gap={2}>
|
||||
<Text as={"span"} fontSize={"sm"} fontWeight={"500"}>
|
||||
KKR Private Equity Fund (K-Prime)
|
||||
</Text>
|
||||
<Text as={"span"} fontSize={"sm"} fontWeight={"500"}>
|
||||
sponsor name: KKR
|
||||
</Text>
|
||||
</Box>
|
||||
<Box display={"flex"} flexDirection={'column'} gap={2}>
|
||||
<Text as={'span'} fontSize={"xs"} color={"gray.500"} fontWeight={"500"}>IO Status</Text>
|
||||
<Badge variant='subtle' w={"auto"} color='green'>Open</Badge>
|
||||
<Box display={"flex"} flexDirection={"column"} gap={2}>
|
||||
<Text as={"span"} fontSize={"xs"} color={"gray.500"} fontWeight={"500"}>
|
||||
IO Status
|
||||
</Text>
|
||||
<Badge variant="subtle" w={"auto"} color="green">
|
||||
Open
|
||||
</Badge>
|
||||
</Box>
|
||||
<Box display={"flex"} flexDirection={'column'} gap={2}>
|
||||
<Text as={'span'} fontSize={"xs"} color={"gray.500"} fontWeight={"500"}>IO MV NAV</Text>
|
||||
<Text as={'span'} fontSize={"sm"} fontWeight={"500"}>$1,092,500</Text>
|
||||
<Box display={"flex"} flexDirection={"column"} gap={2}>
|
||||
<Text as={"span"} fontSize={"xs"} color={"gray.500"} fontWeight={"500"}>
|
||||
IO MV NAV
|
||||
</Text>
|
||||
<Text as={"span"} fontSize={"sm"} fontWeight={"500"}>
|
||||
$1,092,500
|
||||
</Text>
|
||||
</Box>
|
||||
<Box display={"flex"} flexDirection={'column'} gap={2}>
|
||||
<Text as={'span'} fontSize={"xs"} color={"gray.500"} fontWeight={"500"}>IO cash</Text>
|
||||
<Text as={'span'} fontSize={"sm"} fontWeight={"500"}>$48,000</Text>
|
||||
<Box display={"flex"} flexDirection={"column"} gap={2}>
|
||||
<Text as={"span"} fontSize={"xs"} color={"gray.500"} fontWeight={"500"}>
|
||||
IO cash
|
||||
</Text>
|
||||
<Text as={"span"} fontSize={"sm"} fontWeight={"500"}>
|
||||
$48,000
|
||||
</Text>
|
||||
</Box>
|
||||
<Box display={"flex"} flexDirection={'column'} gap={2}>
|
||||
<Text as={'span'} fontSize={"xs"} color={"gray.500"} fontWeight={"500"}>IO NAV</Text>
|
||||
<Text as={'span'} fontSize={"sm"} fontWeight={"500"}>$1,140,500</Text>
|
||||
<Box display={"flex"} flexDirection={"column"} gap={2}>
|
||||
<Text as={"span"} fontSize={"xs"} color={"gray.500"} fontWeight={"500"}>
|
||||
IO NAV
|
||||
</Text>
|
||||
<Text as={"span"} fontSize={"sm"} fontWeight={"500"}>
|
||||
$1,140,500
|
||||
</Text>
|
||||
</Box>
|
||||
|
||||
<Box display={"flex"} alignItems={"start"} height={"95px"}>
|
||||
<Box
|
||||
position={"absolute"}
|
||||
right={3}
|
||||
top={2}
|
||||
display={"flex"}
|
||||
alignItems={"start"}
|
||||
height={"95px"}
|
||||
>
|
||||
<Menu>
|
||||
<MenuButton
|
||||
className="link p-1 rounded-1"
|
||||
className="link p-1 rounded-1 "
|
||||
bg={"#fff"}
|
||||
_hover={{ backgroundColor: "#fff !important" }}
|
||||
onClick={onOpen}
|
||||
@@ -138,82 +163,23 @@ const ViewIOdataHeader = () => {
|
||||
>
|
||||
<HiDotsVertical className="rubix-text-dark fs-6" />
|
||||
</MenuButton>
|
||||
<MenuList>
|
||||
<Box display={"grid"} alignContent={"left"} justifyItems={"start"}>
|
||||
<MenuItem _hover={hover} _focus={{ bg: "transparent" }}>
|
||||
<Button
|
||||
onClick={onInvestmentOpen}
|
||||
bg={bg}
|
||||
_hover={hover}
|
||||
style={style}
|
||||
>
|
||||
Amount Invested
|
||||
</Button>
|
||||
</MenuItem>
|
||||
|
||||
<Divider />
|
||||
<MenuItem _hover={hover}>
|
||||
<Button
|
||||
onClick={onFeesOpen}
|
||||
bg={bg}
|
||||
_hover={hover}
|
||||
style={style}
|
||||
>
|
||||
Fees & Expenses
|
||||
</Button>
|
||||
</MenuItem>
|
||||
|
||||
<Divider />
|
||||
<MenuItem _hover={hover}>
|
||||
<Button
|
||||
onClick={onDistSponsorOpen}
|
||||
bg={bg}
|
||||
_hover={hover}
|
||||
style={style}
|
||||
>
|
||||
Distribution from Sponsors
|
||||
</Button>
|
||||
</MenuItem>
|
||||
|
||||
<Divider />
|
||||
|
||||
<MenuItem _hover={hover}>
|
||||
<Button
|
||||
onClick={onDistInvestorOpen}
|
||||
bg={bg}
|
||||
_hover={hover}
|
||||
style={style}
|
||||
>
|
||||
Distribution To Investors
|
||||
</Button>
|
||||
</MenuItem>
|
||||
|
||||
<Divider />
|
||||
|
||||
<MenuItem _hover={hover}>
|
||||
<Button
|
||||
onClick={onUpdateNavOpen}
|
||||
bg={bg}
|
||||
_hover={hover}
|
||||
style={style}
|
||||
>
|
||||
Update IO NAV
|
||||
</Button>
|
||||
</MenuItem>
|
||||
|
||||
<Divider />
|
||||
|
||||
<MenuItem _hover={hover}>
|
||||
<Button
|
||||
onClick={onUpdateStatusOpen}
|
||||
bg={bg}
|
||||
_hover={hover}
|
||||
style={style}
|
||||
>
|
||||
Update IO Status
|
||||
</Button>
|
||||
</MenuItem>
|
||||
</Box>
|
||||
<MenuList fontSize={"sm"}>
|
||||
<MenuItem _hover={'none'} as={'span'} fontWeight={600} className="border-bottom">
|
||||
Tansaction
|
||||
</MenuItem>
|
||||
<MenuItem onClick={onInvestmentOpen} className="border-bottom">Amount Invested</MenuItem>
|
||||
<MenuItem onClick={onFeesOpen} className="border-bottom">Fees & Expenses</MenuItem>
|
||||
<MenuItem onClick={onDistSponsorOpen} className="border-bottom">
|
||||
Distribution from Sponsors
|
||||
</MenuItem>
|
||||
<MenuItem onClick={onDistInvestorOpen}
|
||||
className="border-bottom">
|
||||
Distribution To investors
|
||||
</MenuItem>
|
||||
<MenuItem onClick={onUpdateNavOpen} className="border-bottom">Update iO NAV</MenuItem>
|
||||
<MenuItem className="border-bottom">Exit</MenuItem>
|
||||
<MenuItem className="border-bottom">Cancel</MenuItem>
|
||||
<MenuItem onClick={onUpdateStatusOpen}>Update iO status</MenuItem>
|
||||
</MenuList>
|
||||
</Menu>
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
FormLabel,
|
||||
Input,
|
||||
Text,
|
||||
Tooltip,
|
||||
useDisclosure,
|
||||
} from "@chakra-ui/react";
|
||||
import React, { useContext, useRef, useState, useEffect } from "react";
|
||||
@@ -20,6 +21,7 @@ import CustomAlertDialog from "../../../Components/CustomAlertDialog";
|
||||
import { FiEdit3 } from "react-icons/fi";
|
||||
import { BiMessageSquareEdit } from "react-icons/bi";
|
||||
import { TbEdit } from "react-icons/tb";
|
||||
import { EditIcon, ViewIcon } from "@chakra-ui/icons";
|
||||
|
||||
// Convert date to YYYY-MM-DD format
|
||||
const formatDateValue = (date) => {
|
||||
@@ -79,18 +81,26 @@ const EditExchangeRate = ({ id, setIsLoading, updateHistory }) => {
|
||||
};
|
||||
|
||||
return (
|
||||
<>
|
||||
<> <Tooltip
|
||||
rounded={"sm"}
|
||||
fontSize={"xs"}
|
||||
label="Edit"
|
||||
bg="#fff"
|
||||
color={"blue.500"}
|
||||
placement="top"
|
||||
>
|
||||
<Button
|
||||
leftIcon={<TbEdit />}
|
||||
ref={btnRef}
|
||||
onClick={onOpen}
|
||||
// colorScheme="forestGreen"
|
||||
color={"green.500"}
|
||||
_hover={{ color: "blue.500" }}
|
||||
// transition={"0.5s all"}
|
||||
color="blue.400"
|
||||
size={"xs"}
|
||||
variant={"ghost"}
|
||||
rounded={"sm"}
|
||||
>
|
||||
Edit
|
||||
<EditIcon />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
<Drawer
|
||||
isOpen={isOpen}
|
||||
placement="right"
|
||||
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
FormLabel,
|
||||
Input,
|
||||
Text,
|
||||
Tooltip,
|
||||
useDisclosure,
|
||||
} from "@chakra-ui/react";
|
||||
import React, { useContext, useRef, useState, useEffect } from "react";
|
||||
@@ -84,18 +85,26 @@ const ExchangeHistory = ({ id, setIsLoading, history }) => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Tooltip
|
||||
rounded={"sm"}
|
||||
fontSize={"xs"}
|
||||
label="History"
|
||||
bg="#fff"
|
||||
color={"purple.500"}
|
||||
placement="top"
|
||||
>
|
||||
<Button
|
||||
leftIcon={<MdHistory />}
|
||||
ref={btnRef}
|
||||
onClick={onOpen}
|
||||
color={"green.500"}
|
||||
_hover={{ color: "purple.500" }}
|
||||
// transition={"0.5s all"}
|
||||
color="purple.400"
|
||||
rounded={"sm"}
|
||||
size={"xs"}
|
||||
variant={"ghost"}
|
||||
rounded={"md"}
|
||||
ms={"auto"}
|
||||
>
|
||||
History
|
||||
<MdHistory />
|
||||
</Button>
|
||||
</Tooltip>
|
||||
<Drawer
|
||||
isOpen={isOpen}
|
||||
placement="right"
|
||||
|
||||
@@ -14,6 +14,7 @@ import {
|
||||
Switch,
|
||||
Tag,
|
||||
Text,
|
||||
Tooltip,
|
||||
useToast,
|
||||
} from "@chakra-ui/react";
|
||||
import React, { useContext, useEffect, useState } from "react";
|
||||
@@ -161,7 +162,7 @@ const ExchangeRate = () => {
|
||||
// <Button colorScheme="green" size={"xs"} variant={"ghost"}>
|
||||
// Edit
|
||||
// </Button>
|
||||
<>
|
||||
<Box display={"flex"} justifyContent={"center"} gap={2}>
|
||||
<EditExchangeRate
|
||||
setIsLoading={setIsLoading}
|
||||
id={item.id}
|
||||
@@ -172,7 +173,7 @@ const ExchangeRate = () => {
|
||||
id={item.id}
|
||||
history={history}
|
||||
/>
|
||||
</>
|
||||
</Box>
|
||||
),
|
||||
}));
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ const InvestmentType = () => {
|
||||
});
|
||||
|
||||
const [ extractedArray, setExtractedArray ] = useState(filteredData?.map((item, index) => ({
|
||||
id: item?.id,
|
||||
// id: item?.id,
|
||||
"Sr.no": (
|
||||
<Text
|
||||
justifyContent={slideFromRight ? "right" : "left"}
|
||||
@@ -184,7 +184,7 @@ const InvestmentType = () => {
|
||||
// </span>
|
||||
// ),
|
||||
Action: (
|
||||
<Box display={"flex"} justifyContent={"space-evenly"}>
|
||||
<Box display={"flex"} justifyContent={"center"} gap={2}>
|
||||
<Tooltip
|
||||
rounded={"sm"}
|
||||
fontSize={"xs"}
|
||||
|
||||
@@ -106,7 +106,7 @@ const Sponser = () => {
|
||||
</Text>
|
||||
),
|
||||
Address: (
|
||||
<Box w={350} isTruncated={true}>
|
||||
<Box w={200} isTruncated={true}>
|
||||
<Text as={"span"} color={"teal.900"} fontWeight={"500"}>
|
||||
{item.sponserAddress}
|
||||
</Text>
|
||||
@@ -120,12 +120,13 @@ const Sponser = () => {
|
||||
</Box>
|
||||
),
|
||||
Status: (
|
||||
<Box minW={24} isTruncated={true}>
|
||||
<Switch
|
||||
size={"sm"}
|
||||
colorScheme="green"
|
||||
onChange={() => handleUpdateStatus(item.id)}
|
||||
isChecked={item.status}
|
||||
/>
|
||||
/></Box>
|
||||
),
|
||||
|
||||
// item?.status ? (
|
||||
@@ -146,7 +147,7 @@ const Sponser = () => {
|
||||
</Box>
|
||||
),
|
||||
Action: (
|
||||
<Box display={"flex"} justifyContent={"space-between"}>
|
||||
<Box display={"flex"} justifyContent={"center"} gap={2}>
|
||||
|
||||
<Tooltip
|
||||
rounded={"sm"}
|
||||
|
||||
BIN
src/assets/EmptySearchList.png
Normal file
BIN
src/assets/EmptySearchList.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 115 KiB |
Reference in New Issue
Block a user