Skip to content

Commit

Permalink
chore: rename comment component
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlitgrace committed Dec 26, 2024
1 parent bac4d14 commit 53909b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { FormatDate } from '$lib/functions/date';
import { createAuthStore } from '$lib/stores/auth.svelte';
import type { CommentTree } from '$lib/types/comment';
import Comment from './comment.svelte';
import CommentBlock from './comment_block.svelte';
import Avatar from './ui/avatar.svelte';
let comment: CommentTree = $props();
Expand Down Expand Up @@ -74,7 +74,7 @@
<!-- render reply comments if any -->
{#if comment.children && comment.children.length > 0}
{#each comment.children as child}
<Comment {...child} />
<CommentBlock {...child} />
{/each}
{/if}
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { browser } from '$app/environment';
import Comment from '$lib/components/comment.svelte';
import CommentBlock from '$lib/components/comment_block.svelte';
import Avatar from '$lib/components/ui/avatar.svelte';
import { FormatDate } from '$lib/functions/date';
import { is_valid } from '$lib/functions/is_valid';
Expand Down Expand Up @@ -107,6 +107,6 @@
<!-- render comments -->
{#if comments}
{#each comments as comment}
<Comment {...comment} />
<CommentBlock {...comment} />
{/each}
{/if}

0 comments on commit 53909b4

Please sign in to comment.