Skip to content

Commit

Permalink
add quote button to articles
Browse files Browse the repository at this point in the history
  • Loading branch information
hzrd149 committed Nov 19, 2024
1 parent d19c154 commit 01e619c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/views/articles/article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import NoteReactions from "../../components/note/timeline-note/components/note-r
import NoteZapButton from "../../components/note/note-zap-button";
import ZapBubbles from "../../components/note/timeline-note/components/zap-bubbles";
import BookmarkEventButton from "../../components/note/bookmark-event";
import QuoteEventButton from "../../components/note/quote-event-button";

function ArticlePage({ article }: { article: NostrEvent }) {
const image = getArticleImage(article);
Expand Down Expand Up @@ -49,13 +50,15 @@ function ArticlePage({ article }: { article: NostrEvent }) {
<ZapBubbles event={article} mb="2" />
<Flex gap="2">
<NoteZapButton event={article} size="sm" variant="ghost" showEventPreview={false} />
<QuoteEventButton event={article} size="sm" variant="ghost" />
<NoteReactions event={article} size="sm" variant="ghost" />
</Flex>
<Box fontSize="lg">
<MarkdownContent event={article} />
</Box>
<Flex gap="2">
<NoteZapButton event={article} size="sm" variant="ghost" showEventPreview={false} />
<QuoteEventButton event={article} size="sm" variant="ghost" />
<NoteReactions event={article} size="sm" variant="ghost" />
</Flex>
</Box>
Expand Down

0 comments on commit 01e619c

Please sign in to comment.