From 85db30d760f5a58df40bc0b63483fb044861e0c4 Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Thu, 30 Nov 2023 15:07:59 -0500 Subject: [PATCH] dummy user mention click --- src/components/markdown/Mention.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/markdown/Mention.tsx b/src/components/markdown/Mention.tsx index a7be06d..e45c20f 100644 --- a/src/components/markdown/Mention.tsx +++ b/src/components/markdown/Mention.tsx @@ -25,6 +25,11 @@ function UserMention({ id }: MentionProps) { const app = useAppStore(); const [user, setUser] = React.useState(null); + const click = () => { + if (!user) return; + // TODO: open user profile modal + }; + React.useEffect(() => { const user = app.users.get(id); if (user) setUser(user); @@ -38,7 +43,7 @@ function UserMention({ id }: MentionProps) { ); return ( - + @{user.username} );