añdiddo color a los post con like

This commit is contained in:
2025-12-03 20:33:38 -03:00
parent 89cc2cbaf6
commit 1b9b2d9805

View File

@@ -137,7 +137,7 @@
<Button
variant="ghost"
disabled={!$sesionStore?.accessToken}
class="flex items-center gap-2 rounded-full bg-accent p-3 text-lg"
class={`${post.isLiked ? 'bg-blue-500/30' : 'bg-accent'} flex items-center gap-2 rounded-full p-3 text-lg`}
onclick={() => likeHandler()}
>
<p>