Skip to content

Commit 53909b4

Browse files
committed
chore: rename comment component
1 parent bac4d14 commit 53909b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/lib/components/comment.svelte renamed to frontend/src/lib/components/comment_block.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { FormatDate } from '$lib/functions/date';
33
import { createAuthStore } from '$lib/stores/auth.svelte';
44
import type { CommentTree } from '$lib/types/comment';
5-
import Comment from './comment.svelte';
5+
import CommentBlock from './comment_block.svelte';
66
import Avatar from './ui/avatar.svelte';
77
88
let comment: CommentTree = $props();
@@ -74,7 +74,7 @@
7474
<!-- render reply comments if any -->
7575
{#if comment.children && comment.children.length > 0}
7676
{#each comment.children as child}
77-
<Comment {...child} />
77+
<CommentBlock {...child} />
7878
{/each}
7979
{/if}
8080
</div>

frontend/src/routes/(app)/q/[name]/quibs/[id]/[slug]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { browser } from '$app/environment';
3-
import Comment from '$lib/components/comment.svelte';
3+
import CommentBlock from '$lib/components/comment_block.svelte';
44
import Avatar from '$lib/components/ui/avatar.svelte';
55
import { FormatDate } from '$lib/functions/date';
66
import { is_valid } from '$lib/functions/is_valid';
@@ -107,6 +107,6 @@
107107
<!-- render comments -->
108108
{#if comments}
109109
{#each comments as comment}
110-
<Comment {...comment} />
110+
<CommentBlock {...comment} />
111111
{/each}
112112
{/if}

0 commit comments

Comments
 (0)