pagination
This commit is contained in:
@@ -72,7 +72,7 @@ const IOCashDetails = () => {
|
||||
);
|
||||
toast({
|
||||
render: () => <ToastBox message={"Status changed succesfully.!"} />,
|
||||
});
|
||||
});
|
||||
}, 300);
|
||||
|
||||
// Table filter
|
||||
@@ -94,7 +94,7 @@ const IOCashDetails = () => {
|
||||
fontWeight={"500"}
|
||||
className="d-flex align-items-center web-text-small"
|
||||
>
|
||||
{item?.transactionDate}
|
||||
{formatDate(item?.transactionDate)}
|
||||
</Text>
|
||||
),
|
||||
"Transaction type": (
|
||||
|
||||
@@ -8,6 +8,7 @@ import CustomAlertDialog from '../../../Components/CustomAlertDialog';
|
||||
import { formatDatee } from '../../../Components/FormField';
|
||||
import { AddIcon } from '@chakra-ui/icons';
|
||||
import AddIONav from './AddIONav';
|
||||
import { formatDate } from '../../Master/Sponser/Sponsers';
|
||||
|
||||
const IONAVDetails = () => {
|
||||
const { navDetails, setNavDetails, IODetails } =
|
||||
@@ -67,7 +68,8 @@ const IONAVDetails = () => {
|
||||
fontWeight={"500"}
|
||||
className="d-flex align-items-center web-text-small"
|
||||
>
|
||||
{formatDatee(item.transactionDate)}
|
||||
{/* {formatDatee(item.transactionDate)} */}
|
||||
{formatDate(item?.transactionDate)}
|
||||
</Text>
|
||||
),
|
||||
"NAV": (
|
||||
@@ -76,7 +78,7 @@ const IONAVDetails = () => {
|
||||
as={"span"}
|
||||
color={"teal.900"}
|
||||
fontWeight={"500"}
|
||||
className="d-flex align-items-center web-text-small"
|
||||
className="d-flex align-items-center web-text-small"
|
||||
>
|
||||
{/* {`${item.transactionAmount}`} */}
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ const ViewIOTable = () => {
|
||||
const [pageSize, setPageSize] = useState(TABLE_PAGINATION?.size);
|
||||
const [currentPage, setCurrentPage] = useState(TABLE_PAGINATION?.page);
|
||||
|
||||
// ===============================[ RTK Api calls ]
|
||||
// ===============================[ RTK Api calls ] =============================================
|
||||
const { data, isLoading, error } = useGetIOsQuery({
|
||||
page: currentPage,
|
||||
size: pageSize,
|
||||
|
||||
@@ -46,7 +46,7 @@ const ViewIOdata = () => {
|
||||
const navigate = useNavigate();
|
||||
const [isEditing, setIsEditing] = useState(false);
|
||||
const { IODetails, setIODetails } = useContext(GlobalStateContext);
|
||||
console.log(IODetails?.isInvestedAmount);
|
||||
console.log(IODetails?.isInvestedAmount);
|
||||
|
||||
const tabs = [
|
||||
{ label: "IO Details", content: <ViewIOdetails data={data?.data} /> },
|
||||
|
||||
@@ -39,7 +39,7 @@ export const depositRequest = createApi({
|
||||
}),
|
||||
|
||||
getDepositHistory: builder.query({
|
||||
query: () => `/deposit/admin/history`,
|
||||
query: ({page, size}) => `/deposit/admin/history?page=${page}&size=${size}`,
|
||||
providesTags: ["getDepositHistory"],
|
||||
}),
|
||||
}),
|
||||
|
||||
@@ -21,7 +21,7 @@ export const investorDetails = createApi({
|
||||
|
||||
// =====[get investment details ]
|
||||
getInvestorsDetailsById: builder.query({
|
||||
query: (id) => `/investorDetails/admin/${id}`,
|
||||
query: (id) => `/investorDetails/admin/byId/${id}`,
|
||||
providesTags: ["getInvestors"],
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user