From 1dc7e46c6e77ef751fd689df5da549f5bf9cbc52 Mon Sep 17 00:00:00 2001 From: Peter Ochieng Date: Mon, 4 Nov 2024 10:26:53 +0300 Subject: [PATCH] Add diconnect wallet --- public/disconnect.png | Bin 0 -> 17317 bytes src/app/components/navbar/NavBar.tsx | 16 ++++++++++++++-- src/app/components/navbar/navbar.module.css | 7 ++++++- src/app/providers/AppProvider.tsx | 4 +++- 4 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 public/disconnect.png diff --git a/public/disconnect.png b/public/disconnect.png new file mode 100644 index 0000000000000000000000000000000000000000..b6aefd2efcc93d3b4b9dbd93940ac59c7be3caf2 GIT binary patch literal 17317 zcmeHvc{tQv`1ep!DQYSz`(9b5R3yvLW=mR0G%89ZCP{|Dh)1$76OtIM6g43v!z8ja zn0ASb7;3EZ*YCNmu4kIL&pG$G&wcLYbKj@P-McIn&R;nn zfj}&@vfQ>8fe-~BMGELup#?d-*VmMl1^94;gYgM9T!}7es8l?81Vm7UcUR6hytP9cG z6c-hvvgY#qqcVsQgSHh86bea4xoE< z$7>QEo!C~?m~nC9yN;oR=9h|6YFku8_5J2d3=V7FiqRq%bHjX9pa1z~=83OCuIK!Y zs=Z#T!i6fOp|!%b!onBS&BIN!Ip4Bil}$dP(?n)?3TJ?MS<)}dbNsXU!uLrQQrqS&HJxqEYD z#mtDmrKQsCa~Lt|*gSX3EyT%$DPb9AUU;I5xPK~J5OhHKUr{BMsU>`jgN89O2=i+^ zt^1pERy0dkPI0M#(w`r)w)ZZ&5Ha^09r;T#t+=O%%X@>8^fJpRo0?4m zcZhVT5+={bA5)P%5+jP>PHM#QFGXvDlNL@0X<3-XIpKW(a(o#~ zEy(P_u#;`Zm`l0geySk7=F{_EL!xEwFGnE?)`UOZgV^xv=;Tm)O`F9+NWQU38|H`1 znNsWPU8f>?MYFD5_|9-x7OIO-`L#stTX&YP$fDcz)SLIiu6dV-Or2Ce``9hS+(NIh z^%5aUBiiOu3m3*_ON6X?-}8OzvaS{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Qg$B;m zyO2kS7(|YN1?W!RSB&z^tdI5g$}hceZyZcMV|us=B{MM_Z*(VyVFHvDG*^;3L^{* zZ6+pIoSgcYVYBTa16k^I)=VHpJ6A^%0&PMs+)>mx4U0!D!os0K_|dab*Y`qqj)OWc zJzuI9Ac$((?_+%M(l0JM2 znCR}@sE$!%FOJMr`*7i)fNsg#a%_L+!N_i8*kc&7>~IvSTv-C;8&cfg)c~2fDhaxN z{VsKXCm!_8Sl(3;l=8;yx`)!$9}=JJ?X*FXl0d3^07+95{WJ?c^R|veIrvb8cIfvf z;cGtOcfUSOK8=Mzzlj0#9TTQx@`vz0>S4n9GJpB8b-&)8rp%~Ofh7PJO)vke$3pni zKwIZDFl_Qou3_yAGXZ=$O#lCQn*Dbx!vvT3ndd+G{QFGT^wxq2R{!udQ%n9XXu<;R zNDdda0Zj>G4MA~o0xna50~L5HuvYJNvQ%P;Sy!i)b^-~V~_g;EG@&Z0_PC7 z>+4F9M#-Hr0ND`gU9U1Z8LhBlP{LsI+QYy8Rfh=p-;@w>jSYF4|Ku5BQt9anGf(XL z8ZTb6Qsij*Td}DdFjkez%uqY|?4YWdMNuPKa%y4|I{auJ`*7tKzmE9d#Iys5{l${x ySopOT%$U0vRw?(;@(stbevd8uX9N-%wm$wWCVv?X{PP { console.log(path); - const { handleConnetWalletBtnClick, address, connection } = useAppContext(); + const { handleConnetWalletBtnClick, address, connection, disconnectWallet } = useAppContext(); console.log("Connection Log") console.log(connection) @@ -107,7 +107,19 @@ const NavBar = () => { height={24} alt="StarkNetLogo" > - {address ? address?.substring(0, 6) : "Connect Wallet"} + {address ? address?.substring(0, 6) : walletConnect} + +
  • + StarkNetLogo + {address ? address?.substring(0, 6) : "Disconnect Wallet"}
  • diff --git a/src/app/components/navbar/navbar.module.css b/src/app/components/navbar/navbar.module.css index 4c3fe00..f2e3cea 100644 --- a/src/app/components/navbar/navbar.module.css +++ b/src/app/components/navbar/navbar.module.css @@ -99,11 +99,16 @@ padding: 10px; } -.active_navbar_menuItems { +.active_navbar_menuItems, .active_navbar_menuItems_diconnect { background-color: var(--activeLinkIndicator); cursor: pointer; } +.active_navbar_menuItems_diconnect{ + color: black; + background-color: white; +} + .display { display: none; } diff --git a/src/app/providers/AppProvider.tsx b/src/app/providers/AppProvider.tsx index 335957a..e09c3ae 100644 --- a/src/app/providers/AppProvider.tsx +++ b/src/app/providers/AppProvider.tsx @@ -19,6 +19,7 @@ const initialData = { address: null as any, connection: null as any, handleConnetWalletBtnClick: null as any, + disconnectWallet: null as any, }; export const AppContext = createContext(initialData); @@ -120,8 +121,9 @@ const connectWallet = async () => { address, connection, handleConnetWalletBtnClick, + disconnectWallet }), - [account, contract, address, connection] + [account, contract, address, connection, ] ); useEffect(() => {