feat: wire post interactions and persist favorites state

This commit is contained in:
zetaloop
2026-02-21 15:45:20 +08:00
parent 1ff499720f
commit 3a1f9c2b7f
6 changed files with 158 additions and 52 deletions
+5 -1
View File
@@ -96,7 +96,11 @@ export default async function ShopPage({ params }: PageProps) {
{shop.owner.bio || "暂无介绍"}
</p>
</div>
<FavoriteButton initialFavorited={isFavorited} />
<FavoriteButton
initialFavorited={isFavorited}
targetType="shop"
targetId={shop.id}
/>
</div>
</div>
</CardContent>