Changing the position of Status in Collection list view.

This commit is contained in:
Kartik Sharma 2025-11-19 14:26:12 +05:30
parent 7773b7a43b
commit 268bd2875f
2 changed files with 12 additions and 11 deletions

View File

@ -112,6 +112,16 @@ const CollectionList = ({ fromDate, toDate, isPending, searchString }) => {
), ),
align: "text-center", align: "text-center",
}, },
{
key: "status",
label: "Status",
getValue: (col) => (
<span className={`badge bg-label-${col?.isActive ? "primary" : "danger"}`}>
{col?.isActive ? "Active" : "Inactive"}
</span>
),
align: "text-center",
},
{ {
key: "amount", key: "amount",
label: "Total Amount", label: "Total Amount",
@ -128,16 +138,7 @@ const CollectionList = ({ fromDate, toDate, isPending, searchString }) => {
), ),
align: "text-end", align: "text-end",
}, },
{
key: "status",
label: "Status",
getValue: (col) => (
<span className={`badge bg-label-${col?.isActive ? "primary" : "danger"}`}>
{col?.isActive ? "Active" : "Inactive"}
</span>
),
align: "text-center",
},
{ {
key: "balance", key: "balance",
label: "Balance", label: "Balance",

View File

@ -126,7 +126,7 @@ const CollectionPage = () => {
}`} }`}
onClick={() => setShowPending(false)} onClick={() => setShowPending(false)}
> >
All Show All
</button> </button>
<button <button
type="button" type="button"