minor fixes

This commit is contained in:
Ren Amamiya
2023-05-07 15:16:46 +07:00
parent c39987ff1c
commit 7a10d6a3d9
5 changed files with 25 additions and 20 deletions
-9
View File
@@ -1,9 +0,0 @@
import { useProfile } from '@lume/utils/hooks/useProfile';
import { shortenKey } from '@lume/utils/shortenKey';
export const NoteMentionUser = (props: { children: any[] }) => {
const pubkey = props.children[0];
const { user } = useProfile(pubkey);
return <span className="cursor-pointer text-fuchsia-500">@{user?.username || user?.name || shortenKey(pubkey)}</span>;
};