Skip to content

Commit

Permalink
[NO JIRA] Fix/bridge drawer img resolution (#1962)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimi-imtbl authored Jul 10, 2024
1 parent e1749d3 commit c749ed5
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {
AspectRatioImage,
Body,
Box,
ButtCon,
Button,
CloudImage,
Drawer,
Heading,
} from '@biom3/react';
Expand Down Expand Up @@ -43,12 +43,12 @@ export function NetworkSwitchDrawer({

const ethImageUrl = getRemoteImage(
checkout.config.environment ?? Environment.PRODUCTION,
'/switchnetworkethereum.png',
'/switchnetworkethereum.svg',
);

const zkevmImageUrl = getRemoteImage(
checkout.config.environment ?? Environment.PRODUCTION,
'/switchnetworkzkevm.png',
'/switchnetworkzkevm.svg',
);

const targetChainName = getChainNameById(targetChainId);
Expand Down Expand Up @@ -108,8 +108,7 @@ export function NetworkSwitchDrawer({
alignItems: 'center',
}}
>
<AspectRatioImage
aspectRatio="21:9"
<CloudImage
use={(
<img
src={showEthImage ? ethImageUrl : zkevmImageUrl}
Expand Down

0 comments on commit c749ed5

Please sign in to comment.