refactor: remove unused admin user update function and update related components to use new API

This commit is contained in:
2026-05-25 16:43:55 +08:00
parent 84bf924378
commit eb02252431
5 changed files with 24 additions and 16 deletions

View File

@@ -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")}

View File

@@ -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")}