From 7b88f09ee7134a8f015f3948a66d70e5e9b346d7 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 3 Jul 2025 13:58:04 +0800 Subject: [PATCH] chore: move apps tips to the app page --- .../apps/check-legacy/components/app-tip.tsx | 4 ++-- web/app/(commonLayout)/apps/check-legacy/page.tsx | 2 -- web/app/(commonLayout)/apps/page.tsx | 12 ++++++++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/web/app/(commonLayout)/apps/check-legacy/components/app-tip.tsx b/web/app/(commonLayout)/apps/check-legacy/components/app-tip.tsx index bcb07c8515..6f82efece2 100644 --- a/web/app/(commonLayout)/apps/check-legacy/components/app-tip.tsx +++ b/web/app/(commonLayout)/apps/check-legacy/components/app-tip.tsx @@ -18,12 +18,12 @@ const AppTip: FC = ({ }) => { const { t } = useTranslation() return ( -
+
-
+
diff --git a/web/app/(commonLayout)/apps/check-legacy/page.tsx b/web/app/(commonLayout)/apps/check-legacy/page.tsx index 21c5c8fc9d..755376d5bb 100644 --- a/web/app/(commonLayout)/apps/check-legacy/page.tsx +++ b/web/app/(commonLayout)/apps/check-legacy/page.tsx @@ -12,7 +12,6 @@ import Pagination from '@/app/components/base/pagination' import { APP_PAGE_LIMIT } from '@/config' import { noop } from 'lodash' import Tip from './components/tip' -import AppTip from './components/app-tip' const i18nPrefix = 'app.checkLegacy' const Page = () => { @@ -94,7 +93,6 @@ const Page = () => {
-
) } diff --git a/web/app/(commonLayout)/apps/page.tsx b/web/app/(commonLayout)/apps/page.tsx index 3f617d41c9..5fbb0d7b89 100644 --- a/web/app/(commonLayout)/apps/page.tsx +++ b/web/app/(commonLayout)/apps/page.tsx @@ -6,15 +6,19 @@ import style from '../list.module.css' import Apps from './Apps' import { useEducationInit } from '@/app/education-apply/hooks' import { useGlobalPublicStore } from '@/context/global-public-context' +import AppTip from './check-legacy/components/app-tip' +import cn from '@/utils/classnames' const AppList = () => { const { t } = useTranslation() useEducationInit() const { systemFeatures } = useGlobalPublicStore() + const legacyAppNum = 5 + const publishedAppNum = 3 return ( -
+
0 && 'pb-[74px]')}> - {!systemFeatures.branding.enabled &&
) }