refactor: remove unused admin user update function and update related components to use new API
This commit is contained in:
@@ -304,7 +304,11 @@ export function SettlementBatchDetailsConsole({ batchId }: Props) {
|
||||
<Button
|
||||
type="button"
|
||||
size="sm"
|
||||
disabled={acting !== null || summary.status !== "approved"}
|
||||
disabled={
|
||||
acting !== null
|
||||
|| summary.status !== "approved"
|
||||
|| summary.review_status !== "approved"
|
||||
}
|
||||
onClick={() => openActionDialog("payout")}
|
||||
>
|
||||
{t("runPayout")}
|
||||
|
||||
@@ -321,7 +321,11 @@ export function SettlementBatchesConsole() {
|
||||
<Button
|
||||
type="button"
|
||||
size="sm"
|
||||
disabled={actingId !== null || row.status !== "approved"}
|
||||
disabled={
|
||||
actingId !== null
|
||||
|| row.status !== "approved"
|
||||
|| row.review_status !== "approved"
|
||||
}
|
||||
onClick={() => openActionDialog(row, "payout")}
|
||||
>
|
||||
{t("payout")}
|
||||
|
||||
Reference in New Issue
Block a user