updated newsfeed note ui

This commit is contained in:
Ren Amamiya
2023-04-17 14:01:09 +07:00
parent 8b67253c0a
commit dfe5e4533e
14 changed files with 75 additions and 92 deletions

6
src/utils/shortenKey.tsx Normal file
View File

@@ -0,0 +1,6 @@
import { nip19 } from 'nostr-tools';
export const shortenKey = (pubkey: string) => {
const npub = nip19.npubEncode(pubkey);
return npub.substring(0, 16).concat('...');
};