From ac1fb5ac133dc1bbad3aae079230f24f87cf3b5a Mon Sep 17 00:00:00 2001 From: bluecco Date: Tue, 26 Nov 2024 09:31:07 +0100 Subject: [PATCH] chore: update starknetkit modal and webwallet theme --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- src/components/connect/ConnectStarknetkitModal.tsx | 1 + src/connectors/index.ts | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a952d7f..fd74b82 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "react": "19.0.0-rc-02c0e824-20241028", "react-dom": "19.0.0-rc-02c0e824-20241028", "starknet": "^6.11.0", - "starknetkit": "^2.5.0" + "starknetkit": "^2.6.0" }, "devDependencies": { "@commitlint/cli": "^19.5.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c868753..2a77bd4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -27,8 +27,8 @@ importers: specifier: ^6.11.0 version: 6.11.0 starknetkit: - specifier: ^2.5.0 - version: 2.5.0(starknet@6.11.0) + specifier: ^2.6.0 + version: 2.6.0(starknet@6.11.0) devDependencies: '@commitlint/cli': specifier: ^19.5.0 @@ -2551,8 +2551,8 @@ packages: starknet@6.11.0: resolution: {integrity: sha512-u50KrGDi9fbu1Ogu7ynwF/tSeFlp3mzOg1/Y5x50tYFICImo3OfY4lOz9OtYDk404HK4eUujKkhov9tG7GAKlg==} - starknetkit@2.5.0: - resolution: {integrity: sha512-8sbI9OLN+ximS3CfzAxcBVNaovZw+vOGtmu06JqzgMjir89A4a/vqho6eGl9rBZvCbzmAzo/3bfJh1aiPZtKKw==} + starknetkit@2.6.0: + resolution: {integrity: sha512-OXIw7JTEsyYDUn4bOwDc/5b3RvVwwVU8ky3VdpCgzdJCicm5iuCfVaD8hiBH/YmU46C/LBrs2QOMCW5cstszfQ==} peerDependencies: starknet: ^6.9.0 @@ -5882,7 +5882,7 @@ snapshots: transitivePeerDependencies: - encoding - starknetkit@2.5.0(starknet@6.11.0): + starknetkit@2.6.0(starknet@6.11.0): dependencies: '@starknet-io/get-starknet': 4.0.3 '@starknet-io/get-starknet-core': 4.0.3 diff --git a/src/components/connect/ConnectStarknetkitModal.tsx b/src/components/connect/ConnectStarknetkitModal.tsx index ce187d7..434d961 100644 --- a/src/components/connect/ConnectStarknetkitModal.tsx +++ b/src/components/connect/ConnectStarknetkitModal.tsx @@ -7,6 +7,7 @@ const ConnectStarknetkitModal = () => { const { starknetkitConnectModal } = useStarknetkitConnectModal({ connectors: connectors as StarknetkitConnector[], + modalTheme: "dark", }) return ( diff --git a/src/connectors/index.ts b/src/connectors/index.ts index 62c85dc..d28f7cc 100644 --- a/src/connectors/index.ts +++ b/src/connectors/index.ts @@ -57,7 +57,7 @@ export const availableConnectors = () => { }, }), isMobileDevice() ? BraavosMobileConnector.init({}) : null, - new WebWalletConnector({ url: ARGENT_WEBWALLET_URL /* theme: "auto" */ }), + new WebWalletConnector({ url: ARGENT_WEBWALLET_URL, theme: "dark" }), ].filter((connector) => connector !== null) }