Skip to content

Commit 9657593

Browse files
committed
[mui] Using new submodule
1 parent c42673d commit 9657593

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

packages/wallet-adapter-mui-design/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"typescript": "^5.4.5"
4444
},
4545
"dependencies": {
46+
"@aptos-labs/wallet-adapter-core": "workspace:*",
4647
"@aptos-labs/wallet-adapter-react": "workspace:*",
4748
"@emotion/react": "^11.10.5",
4849
"@emotion/styled": "^11.10.5",

packages/wallet-adapter-mui-design/src/WalletButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { truncateAddress, useActiveWallet } from "@aptos-labs/wallet-adapter-react";
1+
import { truncateAddress } from "@aptos-labs/wallet-adapter-react";
2+
import { useActiveWallet } from "@aptos-labs/wallet-adapter-react/new";
23
import { AccountBalanceWalletOutlined as AccountBalanceWalletOutlinedIcon } from "@mui/icons-material";
34
import { Avatar, Button, Typography } from "@mui/material";
45
import React, { useState } from "react";

packages/wallet-adapter-mui-design/src/WalletMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ConnectedWallet, useWallet } from "@aptos-labs/wallet-adapter-react";
1+
import { ConnectedWallet } from "@aptos-labs/wallet-adapter-react/new";
22
import {
33
List,
44
ListItem,

packages/wallet-adapter-mui-design/src/WalletsModal.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import {
22
AboutAptosConnect,
33
AboutAptosConnectEducationScreen,
44
AptosPrivacyPolicy,
5-
NewWalletItem as WalletItem,
65
WalletSortingOptions,
7-
useAvailableWallets, AdaptedWallet,
86
} from "@aptos-labs/wallet-adapter-react";
7+
import { WalletItem, useAvailableWallets } from "@aptos-labs/wallet-adapter-react/new";
8+
import { AdaptedWallet } from "@aptos-labs/wallet-adapter-core/new";
99
import {
1010
Box,
1111
Button,
12-
Collapse,
1312
Dialog,
1413
Divider,
1514
IconButton,
@@ -25,10 +24,9 @@ import {
2524
ArrowBack,
2625
ArrowForward,
2726
Close as CloseIcon,
28-
ExpandMore,
2927
LanOutlined as LanOutlinedIcon,
3028
} from "@mui/icons-material";
31-
import { useMemo, useState } from "react";
29+
import { useMemo } from "react";
3230
import { WalletConnectorProps } from "./WalletConnector";
3331

3432
interface WalletsModalProps
@@ -43,10 +41,8 @@ export default function WalletsModal({
4341
modalOpen,
4442
networkSupport,
4543
modalMaxWidth,
46-
...walletSortingOptions
4744
}: WalletsModalProps): JSX.Element {
4845
const theme = useTheme();
49-
const [expanded, setExpanded] = useState(false);
5046

5147
const availableWallets = useAvailableWallets();
5248
const [acWallets, otherWallets] = useMemo(() => {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"extends": "@aptos-labs/wallet-adapter-tsconfig/react-library.json",
3+
"compilerOptions": {
4+
"moduleResolution": "bundler"
5+
},
36
"include": ["."],
47
"exclude": ["dist", "build", "node_modules"]
58
}

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)