Skip to content

Commit

Permalink
Fix Loadable wallet connection for mui-design (#86)
Browse files Browse the repository at this point in the history
* fix: mui design connect Loadable wallet

* chore: add changeset
  • Loading branch information
scottphc authored Feb 8, 2023
1 parent 50c20b3 commit 2678efe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/eight-radios-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aptos-labs/wallet-adapter-mui-design": patch
---

Fix Loadable wallet connection for mui design
4 changes: 4 additions & 0 deletions apps/nextjs-example/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ module.exports = {
experimental: {
transpilePackages: ["wallet-adapter-react", "wallet-adapter-plugin"],
},
webpack: (config) => {
config.resolve.fallback = { "@solana/web3.js": false };
return config;
},
};
2 changes: 1 addition & 1 deletion packages/wallet-adapter-mui-design/src/WalletModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default function WalletsModal({
const icon = option.icon;
return (
<Grid key={option.name} xs={12} paddingY={0.5} item>
{wallet.readyState === "Installed" ? (
{wallet.readyState === "Installed" || wallet.readyState === "Loadable" ? (
<ListItem disablePadding>
<ListItemButton
alignItems="center"
Expand Down

0 comments on commit 2678efe

Please sign in to comment.