From 40851a6a05902321cd3cf4e24202d4162a8e2abb Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 6 Feb 2024 15:49:00 +0800 Subject: [PATCH] fix: CollectionDeletedPlaceholder --- .../components/CollectionDeletedPlaceholder.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/core/client/src/application/data-source/components/CollectionDeletedPlaceholder.tsx b/packages/core/client/src/application/data-source/components/CollectionDeletedPlaceholder.tsx index 6a0e548574..9b9f369225 100644 --- a/packages/core/client/src/application/data-source/components/CollectionDeletedPlaceholder.tsx +++ b/packages/core/client/src/application/data-source/components/CollectionDeletedPlaceholder.tsx @@ -1,8 +1,7 @@ +import { App, Button, Result } from 'antd'; import React, { FC, useMemo } from 'react'; -import { App } from 'antd'; import { useTranslation } from 'react-i18next'; import { CardItem, useDesignable } from '../../../schema-component'; -import { Button, Result } from 'antd'; export interface CollectionDeletedPlaceholderProps { type: 'Collection' | 'Field' | 'DataSource'; @@ -22,7 +21,9 @@ export const CollectionDeletedPlaceholder: FC return `[nocobase]: ${t(type)} ${'name is required'}`; } - return t(`${t(type)}: "${name}" ${t('not exists')}`); + return ( +
{t('The collection "{{name}}" might be deleted. If unnecessary, delete the current block.', { name })}
+ ); }, [message, name, type, t]); const WrapperComponent = useMemo(() => { @@ -36,11 +37,11 @@ export const CollectionDeletedPlaceholder: FC return ( modal.confirm({