feat: Fix commenting issue
This commit is contained in:
1 parent
d9812b17bd
commit
dd30acf19d
5 files changed
+16
-6
No files matched your search
@@ -59,7 +59,7 @@
|
||||
|
||||
<svelte:head>Login</svelte:head>
|
||||
|
||||
<Card class="mx-auto p-6">
|
||||
<Card class="mx-auto p-6 max-w-lg">
|
||||
<form on:submit|preventDefault={logIn} class="flex flex-col gap-4">
|
||||
<h1 class="font-bold text-lg">Log in</h1>
|
||||
<TextInput
|
||||
|
||||
@@ -157,7 +157,10 @@
|
||||
<CommentForm
|
||||
postId={post.id}
|
||||
on:comment={(comment) =>
|
||||
(comments.comments = [...comment.detail, comments.comments])}
|
||||
(comments.comments = [
|
||||
comment.detail.comment_view,
|
||||
...comments.comments,
|
||||
])}
|
||||
/>
|
||||
{/if}
|
||||
<MultiSelect
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
Icon,
|
||||
PencilSquare,
|
||||
} from 'svelte-hero-icons'
|
||||
import SvelteMarkdown from 'svelte-markdown'
|
||||
|
||||
export let data: {
|
||||
user: GetPersonDetailsResponse
|
||||
|
||||
Reference in new issue
Block a user