mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-19 06:54:23 +01:00
update
This commit is contained in:
@@ -3,18 +3,18 @@ import GeneralUserMentionDisplay from '@/components/textNote/GeneralUserMentionD
|
||||
import useModalState from '@/hooks/useModalState';
|
||||
|
||||
export type MentionedUserDisplayProps = {
|
||||
mentionedUser: MentionedUser;
|
||||
pubkey: string;
|
||||
};
|
||||
|
||||
const MentionedUserDisplay = (props: MentionedUserDisplayProps) => {
|
||||
const { showProfile } = useModalState();
|
||||
|
||||
const handleClick = () => {
|
||||
showProfile(props.mentionedUser.pubkey);
|
||||
showProfile(props.pubkey);
|
||||
};
|
||||
return (
|
||||
<button class="inline text-blue-500 underline" onClick={handleClick}>
|
||||
<GeneralUserMentionDisplay pubkey={props.mentionedUser.pubkey} />
|
||||
<GeneralUserMentionDisplay pubkey={props.pubkey} />
|
||||
</button>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user