[update] - condition on pending request for checkers
This commit is contained in:
@@ -85,9 +85,14 @@ const IOCashDetails = () => {
|
||||
}}
|
||||
>
|
||||
Pending{" "}
|
||||
<Badge rounded={"sm"} colorScheme="forestGreen" ms={2}>
|
||||
{IODetails?.ioCashStatusHistory?.Pending.length > 0 && (
|
||||
<Badge rounded={"sm"} colorScheme="forestGreen" ms={2}>
|
||||
{IODetails?.ioCashStatusHistory?.Pending.length || 0}
|
||||
</Badge>
|
||||
)}
|
||||
{/* <Badge rounded={"sm"} colorScheme="forestGreen" ms={2}>
|
||||
{IODetails?.ioCashStatusHistory?.Pending.length || 0}
|
||||
</Badge>
|
||||
</Badge> */}
|
||||
</Tab>
|
||||
<Tab
|
||||
fontSize={"sm"}
|
||||
|
||||
@@ -135,13 +135,11 @@ const IONAVDetails = () => {
|
||||
}}
|
||||
>
|
||||
Pending
|
||||
<Badge
|
||||
rounded={"sm"}
|
||||
colorScheme="forestGreen"
|
||||
ms={2}
|
||||
>
|
||||
{IODetails?.ioNAVStatusHistory?.Pending.length || 0}
|
||||
</Badge>
|
||||
{IODetails?.ioNAVStatusHistory?.Pending.length > 0 && (
|
||||
<Badge rounded={"sm"} colorScheme="forestGreen" ms={2}>
|
||||
{IODetails?.ioNAVStatusHistory?.Pending.length || 0}
|
||||
</Badge>
|
||||
)}
|
||||
</Tab>
|
||||
<Tab
|
||||
fontSize={"sm"}
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
import { Badge, Tab, TabList, TabPanel, TabPanels, Tabs } from "@chakra-ui/react";
|
||||
import {
|
||||
Badge,
|
||||
Tab,
|
||||
TabList,
|
||||
TabPanel,
|
||||
TabPanels,
|
||||
Tabs,
|
||||
} from "@chakra-ui/react";
|
||||
import React, { useContext } from "react";
|
||||
import Approved from "./Approved";
|
||||
import Pending from "./Pending";
|
||||
@@ -6,7 +13,6 @@ import Rejected from "./Rejected";
|
||||
import GlobalStateContext from "../../../../Contexts/GlobalStateContext";
|
||||
|
||||
const IOTransaction = () => {
|
||||
|
||||
const { IODetails } = useContext(GlobalStateContext);
|
||||
return (
|
||||
<Tabs>
|
||||
@@ -28,13 +34,11 @@ const IOTransaction = () => {
|
||||
}}
|
||||
>
|
||||
Pending
|
||||
<Badge
|
||||
rounded={"sm"}
|
||||
colorScheme="forestGreen"
|
||||
ms={2}
|
||||
>
|
||||
{IODetails?.ioTransactionRecords?.Pending.length || 0}
|
||||
</Badge>
|
||||
{IODetails?.ioTransactionRecords?.Pending.length > 0 && (
|
||||
<Badge rounded={"sm"} colorScheme="forestGreen" ms={2}>
|
||||
{IODetails?.ioTransactionRecords?.Pending.length || 0}
|
||||
</Badge>
|
||||
)}
|
||||
</Tab>
|
||||
<Tab
|
||||
fontSize={"sm"}
|
||||
|
||||
Reference in New Issue
Block a user