Files
tanami-admin-panel/src/Pages/IO_Management/ViewIO/HeaderModal/UpdateIONav.jsx

86 lines
2.1 KiB
React
Raw Normal View History

import {
Box,
Button,
2024-07-09 19:05:08 +05:30
FormControl,
FormLabel,
Input,
Modal,
ModalBody,
ModalCloseButton,
ModalContent,
ModalFooter,
ModalHeader,
ModalOverlay,
Text,
Textarea,
} from "@chakra-ui/react";
const UpdateIONav = ({ isOpen, onClose }) => {
return (
<Modal isOpen={isOpen} onClose={onClose}>
<ModalOverlay />
<ModalContent>
2024-07-09 19:05:08 +05:30
<ModalHeader fontSize={'md'}>Update iO NAV</ModalHeader>
<ModalCloseButton />
<ModalBody>
2024-07-09 19:05:08 +05:30
<FormControl mb={"15px"}>
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
Date
2024-07-09 19:05:08 +05:30
</FormLabel>
<Input
placeholder="Select Date"
2024-07-09 19:05:08 +05:30
size="sm"
rounded={'sm'}
fontSize={"sm"}
2024-07-09 19:05:08 +05:30
focusBorderColor="forestGreen.300"
type="date"
/>
2024-07-09 19:05:08 +05:30
</FormControl>
2024-07-09 19:05:08 +05:30
<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>
2024-07-09 19:05:08 +05:30
<FormControl mb={"15px"}>
<FormLabel as={"label"} fontSize={"sm"} fontWeight={500}>
Comments
2024-07-09 19:05:08 +05:30
</FormLabel>
<Textarea
size="sm"
rounded={'sm'}
focusBorderColor="forestGreen.300"
fontSize={"sm"} placeholder="Write Comments" />
</FormControl>
</ModalBody>
<ModalFooter>
<Button
bg={"hsla(139, 100%, 14%, 1)"}
mr={3}
color={"#fff"}
_hover={{
bg: "hsl(139deg 98.99% 26.59%)",
}}
2024-07-09 19:05:08 +05:30
size={'sm'}
rounded={"sm"}
>
Save
</Button>
2024-07-09 19:05:08 +05:30
<Button
size={'sm'}
rounded={"sm"} mr={3} onClick={onClose}>
Close
</Button>
</ModalFooter>
</ModalContent>
</Modal>
);
};
export default UpdateIONav;