refactor(ark): update note component

This commit is contained in:
2023-12-29 14:14:39 +07:00
parent be333260f2
commit 55d6318614
15 changed files with 38 additions and 23 deletions

View File

@@ -1,5 +1,6 @@
import { Note, ThreadNote } from "@lume/ark";
import { ThreadNote } from "@lume/ark";
import { ArrowLeftIcon } from "@lume/icons";
import { ReplyList } from "@lume/ui";
import { useNavigate, useParams } from "react-router-dom";
import { WVList } from "virtua";
@@ -21,7 +22,7 @@ export function EventRoute() {
</div>
<div className="px-3">
<ThreadNote eventId={id} />
<Note.ReplyList eventId={id} title="All replies" className="mt-5" />
<ReplyList eventId={id} title="All replies" className="mt-5" />
</div>
</WVList>
);

View File

@@ -1,4 +1,5 @@
import { Note, ThreadNote } from "@lume/ark";
import { ReplyList } from "@lume/ui";
import { WVList } from "virtua";
export function HomeRoute({ id }: { id: string }) {
@@ -6,7 +7,7 @@ export function HomeRoute({ id }: { id: string }) {
<WVList className="pb-5 overflow-y-auto">
<div className="px-3">
<ThreadNote eventId={id} />
<Note.ReplyList eventId={id} title="All replies" className="mt-5" />
<ReplyList eventId={id} title="All replies" className="mt-5" />
</div>
</WVList>
);