From 0dc954e0ad0601cb00155b1a4e6acffbdaa2f962 Mon Sep 17 00:00:00 2001 From: MSG <59928086+MSghais@users.noreply.github.com> Date: Tue, 23 Jul 2024 21:31:02 +0200 Subject: [PATCH] Fix: show tip in user profile (#235) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * show tip in user profile * tip profile --------- Co-authored-by: Uğur Eren --- JoyboyCommunity/src/modules/TipModal/index.tsx | 4 ---- JoyboyCommunity/src/screens/Profile/Info/index.tsx | 7 ++++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/JoyboyCommunity/src/modules/TipModal/index.tsx b/JoyboyCommunity/src/modules/TipModal/index.tsx index 3371e8d8..33410415 100644 --- a/JoyboyCommunity/src/modules/TipModal/index.tsx +++ b/JoyboyCommunity/src/modules/TipModal/index.tsx @@ -140,10 +140,6 @@ export const TipModal = forwardRef( )} - - - 16 likes - = ({publicKey: userPublicKe const userContacts = useContacts({authors: [userPublicKey]}); const contacts = useContacts({authors: [publicKey]}); const editContacts = useEditContacts(); + const {show: showTipModal} = useTipModal(); const isSelf = publicKey === userPublicKey; const isConnected = contacts.data?.includes(userPublicKey); @@ -124,6 +125,10 @@ export const ProfileInfo: React.FC = ({publicKey: userPublicKe { + showTipModal({pubkey: userPublicKey} as any); + setMenuOpen(false); + }} />