Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aptos-labs/aptos-wallet-adapter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 85f2a0df89a617525dfc1280b9011de4dcf488bb
Choose a base ref
..
head repository: aptos-labs/aptos-wallet-adapter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3698a5fd3daa287ba55e8830b904ae4de472b417
Choose a head ref
14 changes: 14 additions & 0 deletions apps/nextjs-example/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @aptos-labs/wallet-adapter-nextjs-example

## 1.0.4

### Patch Changes

- Updated dependencies [55727e0]
- @aptos-labs/wallet-adapter-mui-design@0.3.0

## 1.0.3

### Patch Changes

- Updated dependencies [be2e1ac]
- @aptos-labs/wallet-adapter-mui-design@0.2.0

## 1.0.2

### Patch Changes
2 changes: 1 addition & 1 deletion apps/nextjs-example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aptos-labs/wallet-adapter-nextjs-example",
"version": "1.0.2",
"version": "1.0.4",
"private": true,
"license": "Apache-2.0",
"scripts": {
12 changes: 12 additions & 0 deletions packages/wallet-adapter-mui-design/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @aptos-labs/wallet-adapter-mui-design

## 0.3.0

### Minor Changes

- 55727e0: Update mui package design layout

## 0.2.0

### Minor Changes

- be2e1ac: enable ans name display on mui package

## 0.1.2

### Patch Changes
2 changes: 1 addition & 1 deletion packages/wallet-adapter-mui-design/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aptos-labs/wallet-adapter-mui-design",
"version": "0.1.2",
"version": "0.3.0",
"description": "Aptos Wallet Adapter mui design",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
4 changes: 3 additions & 1 deletion packages/wallet-adapter-mui-design/src/WalletButton.tsx
Original file line number Diff line number Diff line change
@@ -50,7 +50,9 @@ export default function WalletButton({
sx={{ width: 24, height: 24 }}
/>
<Typography noWrap ml={2}>
{truncateAddress(account?.address!)}
{account?.ansName
? account?.ansName
: truncateAddress(account?.address!)}
</Typography>
</>
) : (
14 changes: 8 additions & 6 deletions packages/wallet-adapter-mui-design/src/WalletModel.tsx
Original file line number Diff line number Diff line change
@@ -44,7 +44,8 @@ export default function WalletsModal({
const icon = option.icon;
return (
<Grid key={option.name} xs={12} paddingY={0.5} item>
{wallet.readyState === "Installed" || wallet.readyState === "Loadable" ? (
{wallet.readyState === "Installed" ||
wallet.readyState === "Loadable" ? (
<ListItem disablePadding>
<ListItemButton
alignItems="center"
@@ -53,8 +54,8 @@ export default function WalletsModal({
sx={{
background:
theme.palette.mode === "dark" ? grey[700] : grey[200],
padding: "1rem 3rem",
borderRadius: "10px",
padding: "1rem 2rem",
borderRadius: `${theme.shape.borderRadius}px`,
display: "flex",
gap: "1rem",
}}
@@ -97,7 +98,7 @@ export default function WalletsModal({
borderRadius: `${theme.shape.borderRadius}px`,
background:
theme.palette.mode === "dark" ? grey[700] : grey[200],
padding: "1rem 3rem",
padding: "1rem 2rem",
gap: "1rem",
}}
>
@@ -148,15 +149,16 @@ export default function WalletsModal({
onClose={handleClose}
aria-labelledby="wallet selector modal"
aria-describedby="select a wallet to connect"
sx={{ borderRadius: "5px" }}
sx={{ borderRadius: `${theme.shape.borderRadius}px` }}
maxWidth="xs"
fullWidth
>
<Stack
sx={{
display: "flex",
flexDirection: "column",
top: "50%",
left: "50%",
width: 500,
bgcolor: "background.paper",
boxShadow: 24,
p: 3,