Changing the position of Status in Collection list view.
This commit is contained in:
parent
7773b7a43b
commit
268bd2875f
@ -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",
|
||||||
|
|||||||
@ -126,7 +126,7 @@ const CollectionPage = () => {
|
|||||||
}`}
|
}`}
|
||||||
onClick={() => setShowPending(false)}
|
onClick={() => setShowPending(false)}
|
||||||
>
|
>
|
||||||
All
|
Show All
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user