refactor: 更新管理端页面元数据,统一国际化支持,移除冗余代码
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import Link from "next/link";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
import { useExportLabels } from "@/hooks/use-export-labels";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { toast } from "sonner";
|
||||
|
||||
@@ -85,6 +86,7 @@ function settlementReviewStatusText(value: string | null, t: (key: string) => st
|
||||
|
||||
export function SettlementBatchesConsole() {
|
||||
const { t } = useTranslation(["settlement", "common"]);
|
||||
const exportLabels = useExportLabels("settlementBatches");
|
||||
const profile = useAdminProfile();
|
||||
useAdminCurrencyCatalog();
|
||||
const canReviewSettlement = adminHasAnyPermission(profile?.permissions, [PRD_PAYOUT_REVIEW]);
|
||||
@@ -220,8 +222,8 @@ export function SettlementBatchesConsole() {
|
||||
<div className="admin-list-actions">
|
||||
<AdminTableExportButton
|
||||
tableId="settlement-batches-table"
|
||||
filename="结算批次"
|
||||
sheetName="结算批次"
|
||||
filename={exportLabels.filename}
|
||||
sheetName={exportLabels.sheetName}
|
||||
/>
|
||||
<Button type="button" className="xl:shrink-0" onClick={applyFilters}>
|
||||
{t("apply")}
|
||||
|
||||
Reference in New Issue
Block a user