diff --git a/packages/frontend/core/src/components/affine/page-properties/property-row-value-renderer.tsx b/packages/frontend/core/src/components/affine/page-properties/property-row-value-renderer.tsx index 8be342b0cc..94dc784dea 100644 --- a/packages/frontend/core/src/components/affine/page-properties/property-row-value-renderer.tsx +++ b/packages/frontend/core/src/components/affine/page-properties/property-row-value-renderer.tsx @@ -232,8 +232,6 @@ const CloudUserAvatar = (props: { type: 'CreatedBy' | 'UpdatedBy' }) => { return null; }, [cloudDocMeta, props.type]); - const t = useI18n(); - if (!cloudDocMeta) { if (isRevalidating) { // TODO: loading ui @@ -253,23 +251,21 @@ const CloudUserAvatar = (props: { type: 'CreatedBy' | 'UpdatedBy' }) => { ); } + return ; +}; + +const NoRecordValue = () => { + const t = useI18n(); return ( - <> - - - {t['com.affine.page-properties.property-user-avatar-no-record']()} - - + + {t['com.affine.page-properties.property-user-avatar-no-record']()} + ); }; -export const LocalUserValue = () => { +const LocalUserValue = () => { const t = useI18n(); - return ( - - {t['com.affine.page-properties.local-user']()} - - ); + return {t['com.affine.page-properties.local-user']()}; }; export const CreatedUserValue = () => { @@ -278,7 +274,11 @@ export const CreatedUserValue = () => { workspaceService.workspace.flavour === WorkspaceFlavour.AFFINE_CLOUD; if (!isCloud) { - return ; + return ( +
+ +
+ ); } return (