Skip to content

Commit 5770000

Browse files
committed
web wallet connect button working & implemented for telegram
1 parent 9e26bd6 commit 5770000

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

frontend/src/App.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function App() {
119119
</Routes>
120120
</main>
121121
<Footer />
122-
{/* {isMobile && disableDesktopOnMobile && (
122+
{isMobile && disableDesktopOnMobile && (
123123
<ActionModal
124124
isOpen={isMobileRestrictionModalOpen}
125125
title="Mobile website restriction"
@@ -130,7 +130,7 @@ function App() {
130130
submitAction={openTelegramBot}
131131
cancelAction={handleisMobileRestrictionModalClose}
132132
/>
133-
)} */}
133+
)}
134134
</div>
135135
);
136136
}

frontend/src/components/layout/wallet-section/WalletSection.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ const WalletSection = ({ onConnectWallet, onLogout }) => {
7777

7878
{isMenuOpen && (
7979
<div className="bg-header-button-bg absolute top-20 right-0 z-50 flex w-[300px] flex-col items-center justify-start rounded-[10px] p-4 transition-all duration-300 md:w-[285px]">
80-
{/* {isMobile && !walletId && ( */}
80+
{isMobile && !walletId && (
8181
<Button
8282
className="h-[48px] w-[238px] text-sm md:h-[46px] md:w-[226px] md:text-xs"
8383
onClick={handleConnect}
8484
>
85-
<span>iuyiuyiuyiuConnect Wallet</span>
85+
<span>Connect Wallet - Mobile</span>
8686
</Button>
87-
{/* // )} */}
87+
)}
8888

8989
{walletId && (
9090
<div className="relative p-[1px]">
@@ -107,11 +107,11 @@ const WalletSection = ({ onConnectWallet, onLogout }) => {
107107
</div>
108108
)}
109109

110-
{/* {!isMobile && !walletId && ( */}
110+
{!isMobile && !walletId && (
111111
<Button variant="primary" size="md" onClick={handleConnect}>
112-
<span>Connect Walletyuyguyu </span>
112+
<span>Connect Wallet - Desktop</span>
113113
</Button>
114-
{/* // )} */}
114+
)}
115115
</div>
116116
);
117117
};

frontend/src/hooks/useArgentWallet.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useState, useEffect, useCallback } from "react";
22
import { ArgentWebWallet} from "@argent/webwallet-sdk";
33
import { RpcProvider } from "starknet";
4-
// import { toast } from "sonner";
54

65
const ARGENT_DUMMY_CONTRACT_ADDRESS = "0x07557a2fbe051e6327ab603c6d1713a91d2cfba5382ac6ca7de884d3278636d7";
76
const ARGENT_DUMMY_CONTRACT_ENTRYPOINT = "increase_number";
@@ -10,7 +9,7 @@ const provider = new RpcProvider({});
109

1110
const argentWebWallet = ArgentWebWallet.init({
1211
appName: "hackbot",
13-
environment: "dev",
12+
environment: "sepolia",
1413
sessionParams: {
1514
allowedMethods: [
1615
{

frontend/vite.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import tailwindcss from '@tailwindcss/vite';
88
export default defineConfig({
99
server: {
1010
port: 3000,
11-
allowedHosts: ['215b-197-210-29-5.ngrok-free.app'],
11+
allowedHosts: ['c25f-98-97-78-151.ngrok-free.app'],
1212
},
1313
plugins: [react(), svgr(), EnvironmentPlugin('all'), tailwindcss()],
1414
test: {

0 commit comments

Comments
 (0)