From 01f7ecd1e44b72d3d3127ecde6fe2fa968612ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Tue, 26 Sep 2023 18:14:43 +0300 Subject: [PATCH] feat: add link to tweet --- src/components/App/SideBar/TwitData/index.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/components/App/SideBar/TwitData/index.tsx b/src/components/App/SideBar/TwitData/index.tsx index 768ad7b7b..f22b7a521 100644 --- a/src/components/App/SideBar/TwitData/index.tsx +++ b/src/components/App/SideBar/TwitData/index.tsx @@ -10,14 +10,6 @@ export const TwitData = () => { const twitId: string = selectedNode?.tweet_id || '' - const openLinkInNewWindow = () => { - // Replace 'linkUrl' with the URL you want to open in a new window - const linkUrl = 'https://example.com' - - // Use window.open() to open the link in a new window - window.open(linkUrl, '_blank') - } - return ( selectedNode && ( @@ -39,8 +31,10 @@ export const TwitData = () => { {selectedNode.text} - - + + + + )}