diff --git a/app/components/Post/PostHeader.vue b/app/components/Post/PostHeader.vue index d82d038..fb40a65 100644 --- a/app/components/Post/PostHeader.vue +++ b/app/components/Post/PostHeader.vue @@ -1,16 +1,22 @@ @@ -20,7 +26,7 @@ import { computed } from 'vue' import { DateTime } from 'luxon' import type { SnPost } from '~/types/api'; -const props = defineProps<{ item: SnPost }>() +const props = withDefaults(defineProps<{ item: SnPost, compact?: boolean }>(), { compact: false }) const apiBase = useSolarNetworkUrl(); const publisherAvatar = computed(() => diff --git a/app/components/Post/PostItem.vue b/app/components/Post/PostItem.vue index a507a81..48be972 100644 --- a/app/components/Post/PostItem.vue +++ b/app/components/Post/PostItem.vue @@ -1,8 +1,8 @@ - - -
- - Refresh - -
@@ -60,6 +50,8 @@ import type { PostListParams } from "~/composables/usePostList" import PostItem from "./PostItem.vue" +const router = useRouter() + const props = defineProps<{ params?: PostListParams }>() @@ -68,6 +60,12 @@ defineEmits<{ react: [postId: string, symbol: string, attitude: number, delta: number] }>() -const { posts, isLoading, hasError, error, loadMore, refresh } = +const { posts, hasError, error, loadMore, refresh } = usePostList(props.params) + + \ No newline at end of file diff --git a/app/components/Post/RepliesList.vue b/app/components/Post/RepliesList.vue index e80b58b..3a72c4d 100644 --- a/app/components/Post/RepliesList.vue +++ b/app/components/Post/RepliesList.vue @@ -23,6 +23,7 @@ >