From 779daceeb220654b413ef0ae478e6e885c1ef3db Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 3 Jul 2025 10:35:34 +0800 Subject: [PATCH] chore: layout --- .../apps/check-legacy/components/header.tsx | 5 +- .../(commonLayout)/apps/check-legacy/page.tsx | 96 ++++++++++--------- 2 files changed, 53 insertions(+), 48 deletions(-) diff --git a/web/app/(commonLayout)/apps/check-legacy/components/header.tsx b/web/app/(commonLayout)/apps/check-legacy/components/header.tsx index 9671188559..25c30124ab 100644 --- a/web/app/(commonLayout)/apps/check-legacy/components/header.tsx +++ b/web/app/(commonLayout)/apps/check-legacy/components/header.tsx @@ -2,21 +2,24 @@ import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' +import cn from '@/utils/classnames' const i18nPrefix = 'app.checkLegacy' type Props = { + className?: string, appNum: number, publishedNum: number, } const Header: FC = ({ + className, appNum, publishedNum, }) => { const { t } = useTranslation() return ( -
+
{t(`${i18nPrefix}.title`)}
{t(`${i18nPrefix}.description`, { num: appNum, publishedNum })}
diff --git a/web/app/(commonLayout)/apps/check-legacy/page.tsx b/web/app/(commonLayout)/apps/check-legacy/page.tsx index 6d9fefc0d9..755376d5bb 100644 --- a/web/app/(commonLayout)/apps/check-legacy/page.tsx +++ b/web/app/(commonLayout)/apps/check-legacy/page.tsx @@ -11,6 +11,7 @@ import Button from '@/app/components/base/button' import Pagination from '@/app/components/base/pagination' import { APP_PAGE_LIMIT } from '@/config' import { noop } from 'lodash' +import Tip from './components/tip' const i18nPrefix = 'app.checkLegacy' const Page = () => { @@ -41,55 +42,56 @@ const Page = () => { }, [published, t]) return ( -
-
-
-
- {/* Filter */} -
-
- } - value={published} - renderTriggerContent={renderTriggerContent} - onSelect={handleSelectPublished} - onClear={clearPublished} - items={[ - { value: 1, name: t(`${i18nPrefix}.yes`) }, - { value: 0, name: t(`${i18nPrefix}.no`) }, - ]} - /> -
- -
- -
- - {(total && total > APP_PAGE_LIMIT) - ? +
+
+ {/* Filter */} +
+
+ } + value={published} + renderTriggerContent={renderTriggerContent} + onSelect={handleSelectPublished} + onClear={clearPublished} + items={[ + { value: 1, name: t(`${i18nPrefix}.yes`) }, + { value: 0, name: t(`${i18nPrefix}.no`) }, + ]} /> - : null} +
+ +
+
+ + {(total && total > APP_PAGE_LIMIT) + ?
+ : null} +
+
+
)