Cleaned code
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
|
||||
<div class="px-3 py-3">
|
||||
<div class="flex items-center gap-2 mb-1">
|
||||
<button class="flex items-center p-0 bg-transparent border-none cursor-pointer" (click)="likePost(post.id)">
|
||||
<button class="flex items-center p-0 bg-transparent border-none cursor-pointer"
|
||||
(click)="likePost(post.id)">
|
||||
@if (post.isLiked) {
|
||||
<ion-icon name="heart" class="text-red-700 text-2xl"></ion-icon>
|
||||
} @else {
|
||||
@@ -60,7 +61,8 @@
|
||||
|
||||
<div class="px-3 py-3">
|
||||
<div class="flex items-center gap-2 mb-1">
|
||||
<button class="flex items-center p-0 bg-transparent border-none cursor-pointer" (click)="likePost(post.id)">
|
||||
<button class="flex items-center p-0 bg-transparent border-none cursor-pointer"
|
||||
(click)="likePost(post.id)">
|
||||
@if (post.isLiked) {
|
||||
<ion-icon name="heart" class="text-red-700 text-2xl"></ion-icon>
|
||||
} @else {
|
||||
|
||||
Reference in New Issue
Block a user