Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

buy-me-coffee: Make twitter usernames clickable #527

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion template/web/app/buy-me-coffee/_components/MemoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function MemoCard({ numCoffees, twitterHandle, message, userAddress, time }: Cof
<Name address={userAddress} />
</span>
<span className="text-3 line-clamp-1 flex-1 truncate text-wrap break-all font-normal text-boat-color-palette-foregroundmuted">
{twitterHandle ? ` (@${twitterHandle})` : null}
{twitterHandle ? <a href={`https://twitter.com/${twitterHandle}`} target="_blank" rel="noopener noreferrer">(@{twitterHandle})</a> : ''}
</span>
<span className="text-3 whitespace-nowrap font-normal text-boat-color-palette-foregroundmuted">
bought {numCoffeesInt} coffee{numCoffeesInt > 1 ? 's' : null}
Expand Down
Loading