Skip to content

Commit

Permalink
refactor: rmv switch network to display strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
FazioNico committed Jun 4, 2024
1 parent 2c7ac85 commit 7261194
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
12 changes: 0 additions & 12 deletions src/components/ETHLiquidStakingstrategy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,7 @@ export function ETHLiquidStakingstrategyCard(props: { asImage?: boolean, asItem?

<IonButton
onClick={async () => {
const chainId = currentNetwork;
await displayLoader();
if (chainId !== NETWORK.optimism) {
await switchNetwork(NETWORK.optimism);
}
await modal.current?.present();
await hideLoader();
}}
expand="block"
color="gradient"
Expand All @@ -429,13 +423,7 @@ export function ETHLiquidStakingstrategyCard(props: { asImage?: boolean, asItem?
<IonItem
style={{'--background': 'transparent'}}
onClick={async () => {
const chainId = currentNetwork;
await displayLoader();
if (chainId !== NETWORK.optimism) {
await switchNetwork(NETWORK.optimism);
}
await modal.current?.present();
await hideLoader();
}}>
<IonAvatar slot="start" style={{
width: '64px',
Expand Down
11 changes: 0 additions & 11 deletions src/components/MATICLiquidStakingstrategy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,7 @@ export function MATICLiquidStakingstrategyCard(props: { asImage?: boolean, asIte

<IonButton
onClick={async () => {
await displayLoader();
if (currentNetwork !== NETWORK.polygon) {
await switchNetwork(NETWORK.polygon);
}
await modal.current?.present();
await hideLoader();
}}
expand="block"
color="gradient"
Expand All @@ -417,13 +412,7 @@ export function MATICLiquidStakingstrategyCard(props: { asImage?: boolean, asIte
<IonItem
style={{'--background': 'transparent'}}
onClick={async () => {
const chainId = currentNetwork;
await displayLoader();
if (chainId !== NETWORK.optimism) {
await switchNetwork(NETWORK.optimism);
}
await modal.current?.present();
await hideLoader();
}}>
<IonAvatar slot="start" style={{
width: '64px',
Expand Down

0 comments on commit 7261194

Please sign in to comment.