mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 14:44:26 +01:00
feat: navigate to author's writings page from article author card
This commit is contained in:
@@ -27,7 +27,7 @@ const AuthorCard: React.FC<AuthorCardProps> = ({ authorPubkey, clickable = true
|
|||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
if (clickable) {
|
if (clickable) {
|
||||||
const npub = nip19.npubEncode(authorPubkey)
|
const npub = nip19.npubEncode(authorPubkey)
|
||||||
navigate(`/p/${npub}`)
|
navigate(`/p/${npub}/writings`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user