feat: Render notes with replies in a thread view

This commit is contained in:
Jesse Wierzbinski 2024-12-29 14:51:21 +01:00
parent 977defc169
commit 0a977468d0
No known key found for this signature in database
4 changed files with 35 additions and 8 deletions

View file

@ -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>