Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Allow me to show a reload button
Browse files Browse the repository at this point in the history
  • Loading branch information
mybearworld committed Jun 15, 2024
1 parent 9d8a3ca commit 786c422
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/components/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,22 @@ const PostBase = memo((props: PostBaseProps) => {
/>
</div>
) : (
<Markdown
secondaryBackground={
props.reply === "topLevel" ? false : props.reply
}
inline={!!props.reply}
>
{post}
</Markdown>
<>
<Markdown
secondaryBackground={
props.reply === "topLevel" ? false : props.reply
}
inline={!!props.reply}
>
{post}
</Markdown>
{props.post.u === "mybearworld" &&
props.post.p.endsWith("\u200d") ? (
<Button type="button" onClick={() => location.reload()}>
Reload
</Button>
) : undefined}
</>
)}
</div>
{!props.reply ? (
Expand Down

0 comments on commit 786c422

Please sign in to comment.