mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-01 13:10:44 -03:00
fix: ahora si esta bien implementadas las animaciones de los post
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
import type { Post } from '../types';
|
||||
import ModalEditar from './[perfil]/modalEditar.svelte';
|
||||
import { updatePost } from '@/hooks/updatePost';
|
||||
import { fade, slide } from 'svelte/transition';
|
||||
|
||||
$effect(() => {
|
||||
(async () => {
|
||||
@@ -61,8 +62,10 @@
|
||||
</Content>
|
||||
</Card>
|
||||
{:else}
|
||||
{#each $posts as post}
|
||||
<PostCard {post} bind:postAModificar />
|
||||
{#each $posts as post (post.id)}
|
||||
<div transition:slide>
|
||||
<PostCard {post} bind:postAModificar />
|
||||
</div>
|
||||
{/each}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
@@ -109,8 +109,8 @@
|
||||
</div>
|
||||
{:else}
|
||||
<div class="flex flex-col gap-2">
|
||||
{#each $posts as post}
|
||||
<div out:slide>
|
||||
{#each $posts as post (post.id)}
|
||||
<div transition:slide>
|
||||
<PostCard {post} bind:postAModificar />
|
||||
</div>
|
||||
{/each}
|
||||
|
||||
Reference in New Issue
Block a user