mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Render notes with replies in a thread view
This commit is contained in:
parent
977defc169
commit
0a977468d0
4 changed files with 35 additions and 8 deletions
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<script lang="ts" setup>
|
||||
import type { Notification, Status } from "@versia/client/types";
|
||||
import Note from "../notes/note.vue";
|
||||
import Thread from "../notes/thread.vue";
|
||||
import NotificationItem from "../notifications/notification.vue";
|
||||
|
||||
const props = defineProps<{
|
||||
|
|
@ -15,11 +15,11 @@ const props = defineProps<{
|
|||
|
||||
const itemComponent = computed(() => {
|
||||
if (props.type === "status") {
|
||||
return Note;
|
||||
return Thread;
|
||||
}
|
||||
if (props.type === "notification") {
|
||||
return NotificationItem;
|
||||
}
|
||||
return null;
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue