Skip to content

Commit

Permalink
fix: nextjs breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshbhole-rp committed Jan 8, 2025
1 parent 2b02b88 commit 510bbe7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @tangled3/react

## 1.16.20

### Patch Changes

- fix: ssr breakage

## 1.16.19

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tangled3/react",
"private": false,
"version": "1.16.19",
"version": "1.16.20",
"type": "module",
"license": "MIT",
"main": "./src/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/connectors/evm/walletConfigs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export const walletConfigs: {
isInstalled: true,
},
injected: {
name: window?.ethereum?.isMetaMask ? 'MetaMask' : 'Browser Wallet',
isInstalled: () => (window ? Boolean(window.ethereum) : false),
name: typeof window !== 'undefined' && window?.ethereum?.isMetaMask ? 'MetaMask' : 'Browser Wallet',
isInstalled: () => (typeof window !== 'undefined' ? Boolean(window?.ethereum) : false),
icon: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='35' height='33' fill='none'%3e %3cg stroke-linecap='round' stroke-linejoin='round' stroke-width='.25'%3e %3cpath fill='%23e17726' stroke='%23e17726' d='m32.958 1-13.134 9.718 2.442-5.727z'/%3e %3cg fill='%23e27625' stroke='%23e27625'%3e %3cpath d='m2.663 1 13.017 9.809-2.325-5.818zM28.23 23.534l-3.495 5.338 7.483 2.06 2.143-7.282zm-26.957.116 2.13 7.282 7.47-2.06-3.481-5.339z'/%3e %3cpath d='M10.47 14.515 8.393 17.65l7.405.337-.247-7.97zm14.68 0-5.157-4.587-.169 8.06 7.405-.337zM10.873 28.872l4.482-2.164-3.858-3.006zm9.393-2.164 4.469 2.164-.61-5.17z'/%3e %3c/g%3e %3cpath fill='%23d5bfb2' stroke='%23d5bfb2' d='m24.735 28.872-4.47-2.164.365 2.903-.04 1.23zm-13.862 0 4.157 1.97-.026-1.231.351-2.903z'/%3e %3cpath fill='%23233447' stroke='%23233447' d='m15.108 21.784-3.715-1.088 2.624-1.205zm5.405 0 1.09-2.293 2.638 1.205z'/%3e %3cpath fill='%23cc6228' stroke='%23cc6228' d='m10.873 28.872.65-5.338-4.131.116zm13.225-5.338.637 5.338 3.494-5.222zm3.132-5.884-7.406.338.689 3.796 1.09-2.293 2.638 1.205zm-15.837 3.046 2.624-1.205 1.091 2.293.689-3.796-7.405-.337z'/%3e %3cpath fill='%23e27525' stroke='%23e27525' d='m8.392 17.65 3.105 6.052-.104-3.006zm15.849 3.046-.117 3.006 3.105-6.051zm-8.444-2.708-.689 3.796.87 4.484.196-5.91zm4.027 0-.364 2.358.182 5.922.87-4.484z'/%3e %3cpath fill='%23f5841f' stroke='%23f5841f' d='m20.513 21.784-.87 4.484.623.44 3.858-3.006.117-3.006zm-9.12-1.088.104 3.006 3.858 3.006.624-.44-.87-4.484z'/%3e %3cpath fill='%23c0ac9d' stroke='%23c0ac9d' d='m20.59 30.842.04-1.231-.338-.285h-4.963l-.325.285.026 1.23-4.157-1.969 1.455 1.192 2.95 2.035h5.053l2.962-2.035 1.442-1.192z'/%3e %3cpath fill='%23161616' stroke='%23161616' d='m20.266 26.708-.624-.44H15.98l-.624.44-.35 2.903.324-.285h4.963l.338.285z'/%3e %3cpath fill='%23763e1a' stroke='%23763e1a' d='M33.517 11.353 34.62 5.99 32.958 1l-12.692 9.394 4.885 4.12 6.898 2.01 1.52-1.776-.663-.48 1.053-.958-.806-.622 1.052-.804zM1 5.989l1.117 5.364-.714.532 1.065.803-.805.622 1.052.959-.663.48 1.52 1.774 6.899-2.008 4.884-4.12L2.663 1z'/%3e %3cpath fill='%23f5841f' stroke='%23f5841f' d='m32.049 16.523-6.898-2.008 2.078 3.136-3.105 6.051 4.106-.052h6.131zM10.47 14.515l-6.898 2.008-2.3 7.127h6.12l4.105.052-3.105-6.051zm9.354 3.473.442-7.594 2-5.403h-8.911l2 5.403.442 7.594.169 2.384.013 5.896h3.663l.013-5.896z'/%3e %3c/g%3e %3c/svg%3e",
},
'metaMask, metaMask-io, io.metamask, io.metamask.mobile, metaMaskSDK': {
Expand Down

0 comments on commit 510bbe7

Please sign in to comment.