Skip to content

Commit

Permalink
Update connect 1.0.0-beta.3-development (#1110)
Browse files Browse the repository at this point in the history
* Update connect 1.0.0-beta.2-development

* Fix build

* Fix format

* Update

* Update

* Update
  • Loading branch information
yuli-ferna authored Sep 26, 2024
1 parent 1b89b75 commit 2bcf84b
Show file tree
Hide file tree
Showing 6 changed files with 171 additions and 167 deletions.
321 changes: 162 additions & 159 deletions apps/connect/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion apps/connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@mui/material": "^5.12.1",
"@tanstack/react-query": "^5.14.2",
"@wormhole-foundation/sdk": "^0.10.3",
"@wormhole-foundation/wormhole-connect": "^1.0.0-beta.1-development",
"@wormhole-foundation/wormhole-connect": "^1.0.0-beta.5-development",
"aptos": "^1.21.0",
"bech32": "^2.0.0",
"dompurify": "^3.0.6",
Expand Down
2 changes: 1 addition & 1 deletion apps/connect/src/env/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const wormholeConnectConfigCommon: Partial<WormholeConnectConfig> = {
},
menu: [],
},
env: CLUSTER,
network: CLUSTER,
rpcs: {},
};

Expand Down
4 changes: 3 additions & 1 deletion apps/connect/src/hooks/useFormatAssetParam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { MAINNET, TESTNET } from "@wormhole-foundation/wormhole-connect";
import { useMemo } from "react";

const tokensList =
ENV.wormholeConnectConfig.env === "Mainnet" ? MAINNET.tokens : TESTNET.tokens;
ENV.wormholeConnectConfig.network === "Mainnet"
? MAINNET.tokens
: TESTNET.tokens;
function getFormatedAsset(asset: string | null): string | null {
const allTokens = {
...tokensList,
Expand Down
5 changes: 3 additions & 2 deletions apps/connect/src/theme/connect.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { WormholeConnectConfig } from "@wormhole-foundation/wormhole-connect";
import type { WormholeConnectPartialTheme } from "@wormhole-foundation/wormhole-connect";

export const theme: WormholeConnectConfig["customTheme"] = {
export const theme: WormholeConnectPartialTheme = {
background: {
default: "rgba(12, 9, 60, 0)",
badge: "rgb(15, 9, 44)",
},
};
4 changes: 1 addition & 3 deletions apps/connect/src/theme/globalStyles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,5 @@ export const globalStyles: ComponentProps<
'[class$="assetPickerContainer"] .MuiPaper-root': {},
'[class$="assetPickerContainer"] .MuiCardContent-root': {},
'[class$="amountCardContent"]': {},
'[class$="chainBadge"]': {
backgroundColor: "rgb(15, 9, 44) !important",
},
'[class$="chainBadge"]': {},
});

0 comments on commit 2bcf84b

Please sign in to comment.