diff --git a/src/Components/MobileView.jsx b/src/Components/MobileView.jsx new file mode 100644 index 0000000..245f80d --- /dev/null +++ b/src/Components/MobileView.jsx @@ -0,0 +1,217 @@ +import { + Box, + Button, + Heading, + Image, + Modal, + ModalContent, + ModalFooter, + ModalHeader, + ModalOverlay, + Progress, + Stack, + Text, +} from "@chakra-ui/react"; +import React from "react"; +import Mobile from "../assets/mobileWing.png"; +import mobileBanner from "../assets/welcome.avif"; +import { GrDownload } from "react-icons/gr"; +import { LuClock } from "react-icons/lu"; + +const MobileView = ({ isOpen, onClose, finalRef }) => { + return ( +
+ + + + + + + + + + Stock + Closing Date Aug 23 2024 + + + + + + Guinevere Gates + + + BHD 46,258 + + + + 0.0% funded + + + fugit eligendi dolore dolore et + + + + + + Sponsor name: + + + Scott Simon + + + + + Estimated return: + + + A provident veniam + + + + + Hoiding period: + + + Eius eiusmod exericit + + + + + Minimum investment: + + + BHD 1 + + + + + + Key Merits + + + + Sit sunt consequunt Dolores minim suscip + + + + + Investment Documents + + + + + Merrill Rocha + + + + + 0.03 mb + + + + + + + Videos + + + + + + + + + + + +
+ ); +}; + +export default MobileView; diff --git a/src/Components/mobileWing.png b/src/Components/mobileWing.png new file mode 100644 index 0000000..1ec4b7a Binary files /dev/null and b/src/Components/mobileWing.png differ diff --git a/src/Pages/Deposit/DepositRequest/DepositRequest.jsx b/src/Pages/Deposit/DepositRequest/DepositRequest.jsx index d04fc0e..d428265 100644 --- a/src/Pages/Deposit/DepositRequest/DepositRequest.jsx +++ b/src/Pages/Deposit/DepositRequest/DepositRequest.jsx @@ -319,7 +319,7 @@ const DepositRequest = () => { isLoading={isLoading} /> { setCreate((prevCreate) => [...prevCreate, newDocument]); onClose(); - }; + }; const handleFileChange = (event) => { const selectedFile = event.target.files[0]; diff --git a/src/Pages/IO_Management/ViewIO/ViewIOTable.jsx b/src/Pages/IO_Management/ViewIO/ViewIOTable.jsx index b8ea2a1..12d42ab 100644 --- a/src/Pages/IO_Management/ViewIO/ViewIOTable.jsx +++ b/src/Pages/IO_Management/ViewIO/ViewIOTable.jsx @@ -15,6 +15,7 @@ import { Tag, Text, Tooltip, + useDisclosure, useToast, } from "@chakra-ui/react"; import React, { useContext, useEffect, useState } from "react"; @@ -38,6 +39,8 @@ import ToastBox from "../../../Components/ToastBox"; import { useGetIOsQuery } from "../../../Services/io.service"; import { TABLE_PAGINATION } from "../../../Constants/Paginations"; import { formatCurrency } from "../../../Components/CurrencyInput"; +import { IoIosPhonePortrait } from "react-icons/io"; +import MobileView from "../../../Components/MobileView"; // import { debounce } from "./AddIOCharges"; const formatDate = (date) => new Date(date).toLocaleDateString(); // Simple date formatter @@ -55,6 +58,13 @@ const ViewIOTable = () => { const [mouseEntered, setMouseEntered] = useState(false); const [mouseEnteredId, setMouseEnteredId] = useState(""); + const { + isOpen: isOpen, + onOpen: onOpen, + onClose: onClose, + } = useDisclosure(); + + // ===============================[ Paginations ] const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size); const [currentPage, setCurrentPage] = useState(TABLE_PAGINATION?.page); @@ -75,6 +85,7 @@ const ViewIOTable = () => { "Goal Amount", "Holding Period", "IO Status", + "Priority", "Action", ]; @@ -176,7 +187,13 @@ const ViewIOTable = () => { ), - + "Priority": ( + + + View + + + ), Action: ( { setMouseEntered={setMouseEntered} /> + + setDeleteAlert(false)} isOpen={deleteAlert} diff --git a/src/assets/mobileImg.png b/src/assets/mobileImg.png new file mode 100644 index 0000000..faa08de Binary files /dev/null and b/src/assets/mobileImg.png differ diff --git a/src/assets/mobileWing.png b/src/assets/mobileWing.png new file mode 100644 index 0000000..1ec4b7a Binary files /dev/null and b/src/assets/mobileWing.png differ