Compare commits
9 Commits
sprint10/r
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b141743190 | ||
|
|
f9d0b3ce6c | ||
|
|
965263a3f2 | ||
|
|
96f813f632 | ||
|
|
79ec8d92ae | ||
| 35d3e07224 | |||
|
|
651c775c2a | ||
| 6c2a38becb | |||
| bddf7381a6 |
@@ -61,6 +61,16 @@ const ApproveHistory = () => {
|
|||||||
onClose: onRejectClose,
|
onClose: onRejectClose,
|
||||||
} = useDisclosure();
|
} = useDisclosure();
|
||||||
|
|
||||||
|
// Debounce the search term to avoid making a request on every keystroke
|
||||||
|
useEffect(() => {
|
||||||
|
const handler = setTimeout(() => {
|
||||||
|
setDebouncedSearchTerm(searchTerm);
|
||||||
|
}, 500); // Adjust delay as needed
|
||||||
|
return () => {
|
||||||
|
clearTimeout(handler);
|
||||||
|
};
|
||||||
|
}, [searchTerm]);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
data,
|
data,
|
||||||
isLoading: drawalRequestLoading,
|
isLoading: drawalRequestLoading,
|
||||||
@@ -191,11 +201,7 @@ const ApproveHistory = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
),
|
),
|
||||||
"Deposit Date": (
|
"Deposit Date": (
|
||||||
<Box
|
<Box w={"100px"} isTruncated={true} display={"flex"}>
|
||||||
w={"100px"}
|
|
||||||
isTruncated={true}
|
|
||||||
display={"flex"}
|
|
||||||
>
|
|
||||||
<Text as={"span"} color={"teal.900"}>
|
<Text as={"span"} color={"teal.900"}>
|
||||||
{formatDate(item?.transaction_date)}
|
{formatDate(item?.transaction_date)}
|
||||||
</Text>
|
</Text>
|
||||||
@@ -221,28 +227,27 @@ const ApproveHistory = () => {
|
|||||||
fontWeight={"500"}
|
fontWeight={"500"}
|
||||||
className="d-flex align-items-center web-text-small"
|
className="d-flex align-items-center web-text-small"
|
||||||
>
|
>
|
||||||
{item?.spportFile_path&&<Badge
|
{item?.spportFile_path && (
|
||||||
px={2}
|
<Badge
|
||||||
py={0.5}
|
px={2}
|
||||||
textTransform={"inherit"}
|
py={0.5}
|
||||||
fontWeight={500}
|
textTransform={"inherit"}
|
||||||
colorScheme={"forestGreen"}
|
fontWeight={500}
|
||||||
>
|
colorScheme={"forestGreen"}
|
||||||
<Link
|
|
||||||
href={import.meta.env.VITE_IMAGE_URL + item?.spportFile_path}
|
|
||||||
isExternal
|
|
||||||
display={"flex"}
|
|
||||||
alignItems={"center"}
|
|
||||||
>
|
>
|
||||||
<Box me={"1px"}
|
<Link
|
||||||
as="span"
|
href={import.meta.env.VITE_IMAGE_URL + item?.spportFile_path}
|
||||||
cursor={"pointer"}
|
isExternal
|
||||||
|
display={"flex"}
|
||||||
|
alignItems={"center"}
|
||||||
>
|
>
|
||||||
View
|
<Box me={"1px"} as="span" cursor={"pointer"}>
|
||||||
</Box>
|
View
|
||||||
<ExternalLinkIcon />
|
</Box>
|
||||||
</Link>
|
<ExternalLinkIcon />
|
||||||
</Badge>}
|
</Link>
|
||||||
|
</Badge>
|
||||||
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
),
|
),
|
||||||
Status: (
|
Status: (
|
||||||
@@ -255,12 +260,12 @@ const ApproveHistory = () => {
|
|||||||
rounded={4}
|
rounded={4}
|
||||||
colorScheme={
|
colorScheme={
|
||||||
item?.transactionStatus === "Approved"
|
item?.transactionStatus === "Approved"
|
||||||
? "green"
|
? "green"
|
||||||
: item?.transactionStatus === "Pending"
|
: item?.transactionStatus === "Pending"
|
||||||
? "yellow"
|
? "yellow"
|
||||||
: item?.transactionStatus === "Reject"
|
: item?.transactionStatus === "Reject"
|
||||||
? "red"
|
? "red"
|
||||||
: "gray" // default border color if status doesn't match any condition
|
: "gray" // default border color if status doesn't match any condition
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{item.transactionStatus}
|
{item.transactionStatus}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { baseQuery } from "./token.serivce";
|
|||||||
export const fawateerRequest = createApi({
|
export const fawateerRequest = createApi({
|
||||||
reducerPath: "fawateerRequest",
|
reducerPath: "fawateerRequest",
|
||||||
baseQuery: baseQuery,
|
baseQuery: baseQuery,
|
||||||
tagTypes: ["getFawateerRequest" ,"getApproveHistory","getApproveComment","getRejectComment","getFawateerMakerRequest"],
|
tagTypes: ["getFawateerRequest", "getApproveHistory", "getApproveComment", "getRejectComment", "getFawateerMakerRequest"],
|
||||||
endpoints: (builder) => ({
|
endpoints: (builder) => ({
|
||||||
|
|
||||||
|
|
||||||
@@ -89,10 +89,10 @@ export const fawateerRequest = createApi({
|
|||||||
|
|
||||||
// Export hooks for usage in functional components
|
// Export hooks for usage in functional components
|
||||||
export const {
|
export const {
|
||||||
useGetFawateerRequestQuery,
|
useGetFawateerRequestQuery,
|
||||||
useGetApproveHistoryQuery,
|
useGetApproveHistoryQuery,
|
||||||
useApproveCommentMutation,
|
useApproveCommentMutation,
|
||||||
useRejectCommentMutation,
|
useRejectCommentMutation,
|
||||||
useGetFawateerForMakerRequestQuery,
|
useGetFawateerForMakerRequestQuery,
|
||||||
useGetFawateerInvestorsQuery
|
useGetFawateerInvestorsQuery
|
||||||
} = fawateerRequest;
|
} = fawateerRequest;
|
||||||
|
|||||||
Reference in New Issue
Block a user