feat: add local user avatar

This commit is contained in:
DarkSky
2024-08-23 12:35:38 +08:00
parent 8be3ecbdbd
commit 74d7ca7f8e
2 changed files with 8 additions and 0 deletions
@@ -242,6 +242,13 @@ const CloudUserAvatar = (props: { type: PagePropertyType }) => {
<span>{account.label}</span>
</>
);
} else {
return (
<>
<Avatar name="?" size={20} />
<span>{t['com.affine.page-properties.property-user-local']()}</span>
</>
);
}
return null;
};