From 695e2050a8c6928964d598db00a97cfbc2605d2d Mon Sep 17 00:00:00 2001 From: Taehee Yoon Date: Wed, 22 Nov 2023 04:10:29 +0900 Subject: [PATCH] fix : sidebar update --- src/components/Sidebar.tsx | 81 +++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 45 deletions(-) diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index a743ea5..dad9971 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -1,4 +1,3 @@ -import { Button, LockSVG } from "@ensdomains/thorin"; import { useWeb3Modal } from "@web3modal/wagmi/react"; import { AiOutlineMessage, AiOutlinePlus } from "react-icons/ai"; import { FiMessageSquare } from "react-icons/fi"; @@ -11,6 +10,12 @@ import { import { useCallback, useEffect, useState } from "react"; import useSendNotification from "@/hooks/useSendNotification"; import axios from "axios"; +import { LuWallet2 } from "react-icons/lu"; +import { + MdBookmarkAdd, + MdOutlineAccountCircle, + MdOutlineNotificationsActive, +} from "react-icons/md"; const projectId = process.env.NEXT_PUBLIC_PROJECT_ID as string; const appDomain = process.env.NEXT_PUBLIC_APP_DOMAIN as string; @@ -19,6 +24,7 @@ const Sidebar = () => { const { isConnected } = useAccount(); const { open, close } = useWeb3Modal(); const [mount, setMount] = useState(false); + const { address: walletAddress } = useAccount(); /** Web3Inbox SDK hooks **/ const isW3iInitialized = useInitWeb3InboxClient({ @@ -160,52 +166,37 @@ const Sidebar = () => { Clear conversations - {/* - - My plan - */} - {/* - - Settings - - + {" "} + {isSending ? "sending..." : "Send notification"} + + ) : ( + + {" "} + {isSubscribing ? "Subscribing..." : "Subscribe to notifications"} + + ))} +
open()} > - - Get help - */} - {isSubscribed ? ( - - ) : ( - - )} - {/*
- - {isConnected ? "Disconnect Wallet" : "Connect Wallat"} -
*/} -
- {mount && isConnected ? ( - + {isConnected && mount ? ( + <> + + My Account + ) : ( - + <> + Wallet Connect + )}