Skip to content

Commit 0740eb3

Browse files
committed
Add custom title & icon to wagmi connectors
1 parent f0dce0a commit 0740eb3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/thirdweb/src/wallets/in-app/core/wallet/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export type InAppWalletCreationOptions =
6969
* Metadata to display in the Connect Modal
7070
*/
7171
metadata?: {
72+
name?: string;
7273
image?: {
7374
src: string;
7475
width?: number;

packages/wagmi-adapter/src/connector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ export function inAppWalletConnector(
9494
const client = args.client;
9595
return createConnector<Provider, Properties, StorageItem>((config) => ({
9696
id: "in-app-wallet",
97-
name: "In-App wallet",
97+
name: args.metadata?.name || "In-App wallet",
9898
type: "in-app",
99+
icon: args.metadata?.image?.src,
99100
connect: async (params) => {
100101
const rawStorage =
101102
typeof window !== "undefined" && window.localStorage

0 commit comments

Comments
 (0)