mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-07 06:29:25 +08:00
refactor: collectionNotAllowViewPlaceholder (#5224)
This commit is contained in:
parent
c3732efaec
commit
84600cb20d
@ -114,11 +114,7 @@ export const CollectionDeletedPlaceholder: FC<CollectionDeletedPlaceholderProps>
|
|||||||
return null;
|
return null;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
const CollectionNotAllowView = () => {
|
||||||
* @internal
|
|
||||||
*/
|
|
||||||
export const CollectionNotAllowViewPlaceholder: FC<any> = () => {
|
|
||||||
const { designable } = useDesignable();
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const dataSource = useDataSource();
|
const dataSource = useDataSource();
|
||||||
const compile = useCompile();
|
const compile = useCompile();
|
||||||
@ -146,13 +142,21 @@ export const CollectionNotAllowViewPlaceholder: FC<any> = () => {
|
|||||||
},
|
},
|
||||||
).replaceAll('>', '>');
|
).replaceAll('>', '>');
|
||||||
}, [nameValue, t]);
|
}, [nameValue, t]);
|
||||||
|
return (
|
||||||
|
<BlockItemCard>
|
||||||
|
<Result status="404" subTitle={messageValue} />
|
||||||
|
</BlockItemCard>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
*/
|
||||||
|
export const CollectionNotAllowViewPlaceholder: FC<any> = () => {
|
||||||
|
const { designable } = useDesignable();
|
||||||
|
|
||||||
if (designable) {
|
if (designable) {
|
||||||
return (
|
return <CollectionNotAllowView />;
|
||||||
<BlockItemCard>
|
|
||||||
<Result status="404" subTitle={messageValue} />
|
|
||||||
</BlockItemCard>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user