Added new types and API functions for settlement period summaries and credit ledgers, improving the management of agent settlements. Updated the admin console to reflect these changes, enhancing user experience with better navigation and data presentation. Additionally, expanded multi-language support by incorporating new translations in English, Nepali, and Chinese for settlement-related terms, ensuring consistency across the platform.
33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
"use client";
|
|
|
|
import { useState } from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
import { AdminPermissionGate } from "@/components/admin/admin-permission-gate";
|
|
import { PRD_RULES_ODDS_ACCESS_ANY } from "@/lib/admin-prd";
|
|
import { ConfigDocPage } from "@/modules/config/config-doc-page";
|
|
import { OddsConfigDocScreen } from "@/modules/config/doc/odds-config-doc-screen";
|
|
import { useOddsConfigWorkspace } from "@/modules/config/use-odds-config-workspace";
|
|
import { RulesPageShell } from "@/modules/rules/rules-page-shell";
|
|
|
|
/** 赔率与回水:共用赔率版本线,主栏两步骤 + 右侧配置摘要。 */
|
|
export function RulesOddsConfigScreen() {
|
|
const { t } = useTranslation("config");
|
|
const [sharedVersionId, setSharedVersionId] = useState("");
|
|
const workspace = useOddsConfigWorkspace(sharedVersionId, setSharedVersionId);
|
|
|
|
return (
|
|
<RulesPageShell>
|
|
<AdminPermissionGate requiredAny={PRD_RULES_ODDS_ACCESS_ANY}>
|
|
<ConfigDocPage
|
|
title={t("nav.rulesOddsTitle")}
|
|
description={t("nav.rulesOddsDescriptionShort")}
|
|
contentClassName="pt-2"
|
|
>
|
|
<OddsConfigDocScreen embedded mergedLayout workspace={workspace} />
|
|
</ConfigDocPage>
|
|
</AdminPermissionGate>
|
|
</RulesPageShell>
|
|
);
|
|
}
|