diff --git a/web/app/components/plugins/base/deprecation-notice.tsx b/web/app/components/plugins/base/deprecation-notice.tsx index f61bd30b74..b33ece1f9e 100644 --- a/web/app/components/plugins/base/deprecation-notice.tsx +++ b/web/app/components/plugins/base/deprecation-notice.tsx @@ -1,22 +1,30 @@ -import cn from '@/utils/classnames' -import { RiAlertFill } from '@remixicon/react' -import Link from 'next/link' import React from 'react' import type { FC } from 'react' +import Link from 'next/link' +import cn from '@/utils/classnames' +import { RiAlertFill } from '@remixicon/react' import { Trans, useTranslation } from 'react-i18next' type DeprecationNoticeProps = { status: 'deleted' | 'active' deprecatedReason: string alternativePluginId: string + urlPrefix: string className?: string + innerWrapperClassName?: string + iconWrapperClassName?: string + textClassName?: string } const DeprecationNotice: FC = ({ status, deprecatedReason, alternativePluginId, + urlPrefix, className, + innerWrapperClassName, + iconWrapperClassName, + textClassName, }) => { const { t } = useTranslation() @@ -25,12 +33,15 @@ const DeprecationNotice: FC = ({ return (
-
+
-
+
-
+
{ alternativePluginId ? ( = ({ components={{ CustomLink: ( ), }} diff --git a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx index 4722cccbe9..0791293e8d 100644 --- a/web/app/components/plugins/plugin-detail-panel/detail-header.tsx +++ b/web/app/components/plugins/plugin-detail-panel/detail-header.tsx @@ -33,7 +33,7 @@ import { useGetLanguage } from '@/context/i18n' import { useModalContext } from '@/context/modal-context' import { useProviderContext } from '@/context/provider-context' import { useInvalidateAllToolProviders } from '@/service/use-tools' -import { API_PREFIX } from '@/config' +import { API_PREFIX, MARKETPLACE_URL_PREFIX } from '@/config' import cn from '@/utils/classnames' import { getMarketplaceUrl } from '@/utils/var' import { PluginAuth } from '@/app/components/plugins/plugin-auth' @@ -280,7 +280,8 @@ const DetailHeader = ({ status={status} deprecatedReason={deprecated_reason} alternativePluginId={alternative_plugin_id} - className='mb-2 mt-1' + urlPrefix={MARKETPLACE_URL_PREFIX} + className='mt-3' /> {