diff --git a/app/client/src/app/Providers.tsx b/app/client/src/app/Providers.tsx
index 2985d9fa..f2b92e18 100644
--- a/app/client/src/app/Providers.tsx
+++ b/app/client/src/app/Providers.tsx
@@ -1,74 +1,67 @@
"use client";
import React, { useEffect } from "react";
-
import { useLoginStore } from "@/store/loginStore";
-
+
import { sepolia, mainnet } from "@starknet-react/chains";
-import {
- StarknetConfig,
- publicProvider,
- voyager
-} from "@starknet-react/core";
+import { StarknetConfig, publicProvider, voyager } from "@starknet-react/core";
import type { Connector } from "@starknet-react/core";
-import { InjectedConnector } from "starknetkit/injected"
-import { ArgentMobileConnector, isInArgentMobileAppBrowser } from "starknetkit/argentMobile";
-import { WebWalletConnector } from "starknetkit/webwallet"
+import { InjectedConnector } from "starknetkit/injected";
+import {
+ ArgentMobileConnector,
+ isInArgentMobileAppBrowser,
+} from "starknetkit/argentMobile";
import { useRouter } from "next/navigation";
-
-export function Providers({ children }: { children: React.ReactNode }) {
- const loginStore = useLoginStore()
- const router = useRouter()
-
- const connectors = isInArgentMobileAppBrowser() ? [
- ArgentMobileConnector.init({
- options: {
- url:"",
- dappName: "Example dapp",
- projectId: "example-project-id",
- },
- inAppBrowserOptions: {},
- })
- ] as Connector[] : [
- new InjectedConnector({ options: { id: "braavos", name: "Braavos" }}),
- new InjectedConnector({ options: { id: "argentX", name: "Argent X" }}),
- new WebWalletConnector({ url: "https://web.argent.xyz" }),
- ArgentMobileConnector.init({
- options: {
- url:"",
- dappName: "Example dapp",
- projectId: "example-project-id",
- }
- })
- ] as Connector[]
+export function Providers({ children }: { children: React.ReactNode }) {
+ const loginStore = useLoginStore();
+ const router = useRouter();
-
+ const connectors = isInArgentMobileAppBrowser()
+ ? ([
+ ArgentMobileConnector.init({
+ options: {
+ url: "",
+ dappName: "Example dapp",
+ projectId: "example-project-id",
+ },
+ inAppBrowserOptions: {},
+ }),
+ ] as Connector[])
+ : ([
+ new InjectedConnector({ options: { id: "braavos", name: "Braavos" } }),
+ new InjectedConnector({ options: { id: "argentX", name: "Argent X" } }),
+ ArgentMobileConnector.init({
+ options: {
+ url: "",
+ dappName: "Example dapp",
+ projectId: "example-project-id",
+ },
+ }),
+ ] as Connector[]);
- useEffect(()=>{
- const localStorage = window.localStorage
- const userType = localStorage.getItem("user-type")
+ useEffect(() => {
+ const localStorage = window.localStorage;
+ const userType = localStorage.getItem("user-type");
- if(!userType) {
- loginStore.clearUserType()
- localStorage.removeItem("user-type")
- router.push("/")
- return
+ if (!userType) {
+ loginStore.clearUserType();
+ localStorage.removeItem("user-type");
+ router.push("/");
+ return;
}
- const allowedUserTypes = ["owner", "inspector"]
- if (!allowedUserTypes.includes(userType)) {
- loginStore.clearUserType()
- localStorage.removeItem("user-type")
- router.push("/")
- return
+ const allowedUserTypes = ["owner", "inspector"];
+ if (!allowedUserTypes.includes(userType)) {
+ loginStore.clearUserType();
+ localStorage.removeItem("user-type");
+ router.push("/");
+ return;
}
- loginStore.setUserType(userType as "owner"|"inspector")
- }, [])
-
+ loginStore.setUserType(userType as "owner" | "inspector");
+ }, []);
-
return (
+ Connect Wallet +
+Connect Wallet
-{walletIdToName.get(connector.id) ?? connector.name}
- {/*Powered by Agent
*/} -+ {walletIdToName.get(connector.id) ?? connector.name} +
+ {/*Powered by Agent
*/} +