From 6003b71686c24a6e09029d224c3db1d100425dd7 Mon Sep 17 00:00:00 2001 From: Ji Young Lee Date: Wed, 4 Dec 2024 15:52:07 +1100 Subject: [PATCH] Upgrade biome3/react to 0.28.13 Add tooltip --- packages/checkout/widgets-lib/package.json | 2 +- .../src/components/RawImage/RawImage.tsx | 2 +- .../components/SimpleLayout/SimpleLayout.tsx | 2 +- .../src/lib/squid/components/SquidIcon.tsx | 2 +- .../components/SelectedRouteOption.tsx | 19 ++++-- sdk/package.json | 4 +- yarn.lock | 61 ++++++++++++++++++- 7 files changed, 79 insertions(+), 13 deletions(-) diff --git a/packages/checkout/widgets-lib/package.json b/packages/checkout/widgets-lib/package.json index 64083cdd91..ad234f4660 100644 --- a/packages/checkout/widgets-lib/package.json +++ b/packages/checkout/widgets-lib/package.json @@ -16,7 +16,7 @@ "dependencies": { "@0xsquid/sdk": "^2.8.25", "@biom3/design-tokens": "^0.4.4", - "@biom3/react": "^0.27.12", + "@biom3/react": "0.28.13", "@ethersproject/bignumber": "^5.7.0", "@ethersproject/providers": "^5.7.2", "@imtbl/bridge-sdk": "0.0.0", diff --git a/packages/checkout/widgets-lib/src/components/RawImage/RawImage.tsx b/packages/checkout/widgets-lib/src/components/RawImage/RawImage.tsx index 7be964dc3b..d42e9886ab 100644 --- a/packages/checkout/widgets-lib/src/components/RawImage/RawImage.tsx +++ b/packages/checkout/widgets-lib/src/components/RawImage/RawImage.tsx @@ -26,7 +26,7 @@ export function RawImage({ src={src} alt={alt} className="CloudImage" - style={useConvertSxToEmotionStyles(imageStyles)} + // style={useConvertSxToEmotionStyles(imageStyles)} TODO: fix this loading="lazy" /> diff --git a/packages/checkout/widgets-lib/src/components/SimpleLayout/SimpleLayout.tsx b/packages/checkout/widgets-lib/src/components/SimpleLayout/SimpleLayout.tsx index c2128442fb..100a102b29 100644 --- a/packages/checkout/widgets-lib/src/components/SimpleLayout/SimpleLayout.tsx +++ b/packages/checkout/widgets-lib/src/components/SimpleLayout/SimpleLayout.tsx @@ -1,5 +1,5 @@ import { Box, BoxProps } from '@biom3/react'; -import merge from 'ts-deepmerge'; +import { merge } from 'ts-deepmerge'; import { simpleLayoutStyle, headerStyle, diff --git a/packages/checkout/widgets-lib/src/lib/squid/components/SquidIcon.tsx b/packages/checkout/widgets-lib/src/lib/squid/components/SquidIcon.tsx index 80e7cf106f..a2fef0ef37 100644 --- a/packages/checkout/widgets-lib/src/lib/squid/components/SquidIcon.tsx +++ b/packages/checkout/widgets-lib/src/lib/squid/components/SquidIcon.tsx @@ -1,5 +1,5 @@ import { DeeplyNestedSx, SvgIcon } from '@biom3/react'; -import merge from 'ts-deepmerge'; +import { merge } from 'ts-deepmerge'; export function SquidIcon({ sx = {}, diff --git a/packages/checkout/widgets-lib/src/widgets/add-tokens/components/SelectedRouteOption.tsx b/packages/checkout/widgets-lib/src/widgets/add-tokens/components/SelectedRouteOption.tsx index 80960ed193..d2a92d72f5 100644 --- a/packages/checkout/widgets-lib/src/widgets/add-tokens/components/SelectedRouteOption.tsx +++ b/packages/checkout/widgets-lib/src/widgets/add-tokens/components/SelectedRouteOption.tsx @@ -3,6 +3,7 @@ import { MenuItem, Stack, Sticker, + Tooltip, } from '@biom3/react'; import { MouseEvent, @@ -148,12 +149,18 @@ export function SelectedRouteOption({ selected={withSelectedWallet} > {chain && ( - - } - size="xSmall" - sx={{ bottom: 'base.spacing.x2', right: 'base.spacing.x2' }} - /> + + + + } + size="xSmall" + /> + + + {chain.name} + +