refactor: update agent API schemas, standardize UI text styling, and enhance settlement credit ledger components
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { Plus } from "lucide-react";
|
||||
import { useEffect, useMemo, useState } from "react";
|
||||
import { useEffect, useMemo, useState, type ReactNode } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { toast } from "sonner";
|
||||
|
||||
@@ -51,6 +51,7 @@ type SettlementPeriodWorkbenchProps = {
|
||||
currencyCode: string;
|
||||
canManage: boolean;
|
||||
periods: SettlementPeriodRow[];
|
||||
headerActions?: ReactNode;
|
||||
onViewDetail: (periodId: number) => void;
|
||||
onReloadPeriods: () => Promise<SettlementPeriodRow[]>;
|
||||
onPeriodOpened?: (periodId: number) => void;
|
||||
@@ -62,6 +63,7 @@ export function SettlementPeriodWorkbench({
|
||||
currencyCode,
|
||||
canManage,
|
||||
periods,
|
||||
headerActions,
|
||||
onViewDetail,
|
||||
onReloadPeriods,
|
||||
onPeriodOpened,
|
||||
@@ -257,6 +259,7 @@ export function SettlementPeriodWorkbench({
|
||||
<AdminPageCard
|
||||
title={t("periodTable.title", { defaultValue: "账期管理" })}
|
||||
description={cardDescription}
|
||||
actions={headerActions}
|
||||
>
|
||||
<div className="admin-list-toolbar">
|
||||
<div className="admin-list-field">
|
||||
|
||||
Reference in New Issue
Block a user