diff --git a/web/app/(commonLayout)/apps/check-legacy/components/app-tip.tsx b/web/app/(commonLayout)/apps/check-legacy/components/app-tip.tsx new file mode 100644 index 0000000000..bcb07c8515 --- /dev/null +++ b/web/app/(commonLayout)/apps/check-legacy/components/app-tip.tsx @@ -0,0 +1,44 @@ +'use client' +import { RiArrowRightLine, RiImage2Fill } from '@remixicon/react' +import Link from 'next/link' +import type { FC } from 'react' +import React from 'react' +import { useTranslation } from 'react-i18next' + +const i18nPrefix = 'app.checkLegacy' + +type Props = { + appNum: number, + publishedNum: number, +} + +const AppTip: FC = ({ + appNum, + publishedNum, +}) => { + const { t } = useTranslation() + return ( +
+
+
+
+ +
+
+
+
+ +
+
{t(`${i18nPrefix}.title`)}
+
+ {t(`${i18nPrefix}.description`, { num: appNum, publishedNum })} + {t(`${i18nPrefix}.toSolve`)} + +
+
+
+
+ ) +} + +export default React.memo(AppTip) diff --git a/web/app/(commonLayout)/apps/check-legacy/page.tsx b/web/app/(commonLayout)/apps/check-legacy/page.tsx index 755376d5bb..21c5c8fc9d 100644 --- a/web/app/(commonLayout)/apps/check-legacy/page.tsx +++ b/web/app/(commonLayout)/apps/check-legacy/page.tsx @@ -12,6 +12,7 @@ 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 = () => { @@ -93,6 +94,7 @@ const Page = () => {
+
) } diff --git a/web/app/(commonLayout)/apps/check-legacy/use-legacy-list.ts b/web/app/(commonLayout)/apps/check-legacy/use-legacy-list.ts index 59cf24999b..6f06ba808b 100644 --- a/web/app/(commonLayout)/apps/check-legacy/use-legacy-list.ts +++ b/web/app/(commonLayout)/apps/check-legacy/use-legacy-list.ts @@ -30,7 +30,7 @@ const useLegacyList = () => { }, [queryParams]) return { - total: 100, + total: 5, list, sort_by, setOrderBy, diff --git a/web/i18n/en-US/app.ts b/web/i18n/en-US/app.ts index 0bf3a682ef..76208387da 100644 --- a/web/i18n/en-US/app.ts +++ b/web/i18n/en-US/app.ts @@ -254,6 +254,7 @@ const translation = { description: 'You can now create file type variables in the start form. We will no longer support the image upload feature in the future.', learnMore: 'Learn more', }, + toSolve: 'To resolve', }, } diff --git a/web/i18n/zh-Hans/app.ts b/web/i18n/zh-Hans/app.ts index 4a079d2283..57e52ec107 100644 --- a/web/i18n/zh-Hans/app.ts +++ b/web/i18n/zh-Hans/app.ts @@ -255,6 +255,7 @@ const translation = { description: '您现在可以在开始表单中创建文件类型变量。未来我们将不再支持图片上传功能。', learnMore: '了解更多', }, + toSolve: '去解决', }, }