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",
},
{
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",
label: "Total Amount",
@ -128,16 +138,7 @@ const CollectionList = ({ fromDate, toDate, isPending, searchString }) => {
),
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",
label: "Balance",

View File

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