complete transactions sync with api
This commit is contained in:
@@ -27,4 +27,4 @@ export interface TransactionsCard {
|
||||
id: string
|
||||
}
|
||||
|
||||
export const getTransactionsList = () => axiosInstance.get<TransactionsResponse>("/gps/transactions")
|
||||
export const getTransactionsList = () => axiosInstance.get<TransactionsResponse>("/gps/withdraw")
|
||||
@@ -2,6 +2,7 @@ import { ClipboardClose, ClipboardTick } from "iconsax-react";
|
||||
import { createColumns } from "../components/common/create-col";
|
||||
import { colConfig } from "../types";
|
||||
import { filterNumber } from "./status";
|
||||
import { formatDateToPersian } from "./getDate";
|
||||
|
||||
|
||||
|
||||
@@ -17,9 +18,9 @@ const columnConfigs: colConfig[] | [] = [
|
||||
<p className="text-primary-text-color font-normal text-xs">تومان</p>
|
||||
</div>
|
||||
},
|
||||
{ accessor: "request_date", header: "تاریخ درخواست", cellRenderer: (info) => info.getValue() && <p style={{ direction: "ltr" }}>{info.getValue()}</p> },
|
||||
{ accessor: "traking_number", header: "شماره پیگیری" },
|
||||
{ accessor: "deposit_date", header: "تاریخ واریز" },
|
||||
{ accessor: "created_at", header: "تاریخ درخواست", cellRenderer: (info) => info.getValue() && <p style={{ direction: "ltr" }}>{formatDateToPersian(info.getValue())}</p> },
|
||||
{ accessor: "id", header: "شماره پیگیری" },
|
||||
{ accessor: "updated_at", header: "تاریخ واریز", cellRenderer: (info) => info.getValue() && <p style={{ direction: "ltr" }}>{formatDateToPersian(info.getValue())}</p> },
|
||||
];
|
||||
|
||||
export const transactionsCol = createColumns<any>(columnConfigs);
|
||||
Reference in New Issue
Block a user