0.3.0.4
This commit is contained in:
@@ -655,20 +655,15 @@ export default function MemberProfilePage() {
|
||||
<Images className="h-5 w-5 text-primary" />
|
||||
影像记忆
|
||||
</h3>
|
||||
{member.photoIds && member.photoIds.length > 0 ? (
|
||||
<PhotoGallery
|
||||
photoIds={member.photoIds}
|
||||
onChange={async (photoIds) => {
|
||||
await updateMember(member.id, { photoIds })
|
||||
setLastSaveTime(Date.now())
|
||||
}}
|
||||
readonly={false}
|
||||
/>
|
||||
) : (
|
||||
<div className="text-sm text-muted-foreground text-center py-10">
|
||||
暂无照片记录,欢迎补充珍贵影像。
|
||||
</div>
|
||||
)}
|
||||
<PhotoGallery
|
||||
photos={member.photos}
|
||||
photoIds={member.photoIds}
|
||||
onChange={async (photos) => {
|
||||
await updateMember(member.id, { photos, photoIds: undefined })
|
||||
setLastSaveTime(Date.now())
|
||||
}}
|
||||
readonly={false}
|
||||
/>
|
||||
</div>
|
||||
</TabsContent>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user