feat: add individual post keybinds
This commit is contained in:
6 files changed
+111
-34
No files matched your search
@@ -34,6 +34,7 @@
|
||||
style?: string
|
||||
onedit?: (post: PostView) => void
|
||||
onhide?: (hide: boolean) => void
|
||||
voteComponent?: { castVote: (vote: number) => void }
|
||||
}
|
||||
|
||||
let {
|
||||
@@ -41,6 +42,7 @@
|
||||
view = 'cozy',
|
||||
debug = $bindable(false),
|
||||
style = '',
|
||||
voteComponent = $bindable(),
|
||||
onedit,
|
||||
onhide,
|
||||
}: Props = $props()
|
||||
@@ -89,6 +91,7 @@
|
||||
bind:score={post.counts.score}
|
||||
bind:upvotes={post.counts.upvotes}
|
||||
bind:downvotes={post.counts.downvotes}
|
||||
bind:this={voteComponent}
|
||||
showCounts={profile.current?.user?.local_user_view?.local_user
|
||||
?.show_scores ?? true}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user