diff --git a/src/components/collections/ViewCollection.jsx b/src/components/collections/ViewCollection.jsx index b1c9cd26..f12d9f75 100644 --- a/src/components/collections/ViewCollection.jsx +++ b/src/components/collections/ViewCollection.jsx @@ -1,20 +1,17 @@ -import React from 'react' -import { useCollectionContext } from '../../pages/collections/CollectionPage'; -import { useCollection } from '../../hooks/useCollections'; -import { formatUTCToLocalTime } from '../../utils/dateUtils'; -import { formatFigure } from '../../utils/appUtils'; -import Avatar from '../common/Avatar'; +import React from "react"; +import { useCollectionContext } from "../../pages/collections/CollectionPage"; +import { useCollection } from "../../hooks/useCollections"; +import { formatUTCToLocalTime } from "../../utils/dateUtils"; +import { formatFigure } from "../../utils/appUtils"; +import Avatar from "../common/Avatar"; const ViewCollection = () => { - const { viewCollection } = useCollectionContext(); - const { data, isLoading, isError, error } = useCollection( - viewCollection - ); - console.log(data) - if(isLoading) return
Collection Details
Received Payments
Sr,No | +Sr,No | Transaction ID | Received Date | Amount | @@ -76,10 +124,23 @@ const ViewCollection = () => {{index + 1} | {payment.transactionId} | {formatUTCToLocalTime(payment.paymentReceivedDate)} | -{formatFigure(payment.amount, { type: "currency", currency: "INR" })} | -
- |
+ + {formatFigure(payment.amount, { + type: "currency", + currency: "INR", + })} + | +
+
+
+ |
---|