Skip to content

Commit

Permalink
feat: obsolete banners removed
Browse files Browse the repository at this point in the history
  • Loading branch information
manneredboor committed Aug 22, 2024
1 parent 5eabd5b commit d82f791
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 234 deletions.
12 changes: 0 additions & 12 deletions consts/matomo-click-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ export const enum MATOMO_CLICK_EVENTS_TYPES {
viewEtherscanOnStakePage = 'viewEtherscanOnStakePage',
lidoOnLidoMultichainOpportunities = 'lidoOnLidoMultichainOpportunities',
vaultsBannerLearnMore = 'vaultsBannerLearnMore',
vaultsBannerExploreAll = 'vaultsBannerExploreAll',
obolBannerProceed = 'obolBannerProceed',
obolBannerDVVLink = 'obolBannerDVVLink',
exploreAllStrategiesAfterStake = 'exploreAllStrategiesAfterStake',
exploreAllStrategiesAfterWrap = 'exploreAllStrategiesAfterWrap',
// FAQ
faqSafeWorkWithLidoAudits = 'faqSafeWorkWithLidoAudits',
faqLidoEthAprEthLandingPage = 'faqLidoEthAprEthLandingPage',
Expand Down Expand Up @@ -128,11 +126,6 @@ export const MATOMO_CLICK_EVENTS: Record<
'Click on "Learn more" on Vaults banner',
'eth_widget_learn_more_vaults_banner',
],
[MATOMO_CLICK_EVENTS_TYPES.vaultsBannerExploreAll]: [
'Ethereum_Staking_Widget',
'Push "Explore all strategies"',
'eth_widget_explore_all_strategies',
],
[MATOMO_CLICK_EVENTS_TYPES.obolBannerProceed]: [
'Ethereum_Staking_Widget',
'Push "Proceed" Obol SSV',
Expand All @@ -148,11 +141,6 @@ export const MATOMO_CLICK_EVENTS: Record<
'Push "Explore all strategies" after staking',
'eth_widget_explore_all_strategies_after_staking',
],
[MATOMO_CLICK_EVENTS_TYPES.exploreAllStrategiesAfterWrap]: [
'Ethereum_Staking_Widget',
'Push "Explore all strategies" after wrap',
'eth_widget_explore_all_strategies_after_wraping',
],
// FAQ
[MATOMO_CLICK_EVENTS_TYPES.faqSafeWorkWithLidoAudits]: [
'Ethereum_Staking_Widget',
Expand Down
2 changes: 0 additions & 2 deletions features/wsteth/unwrap/hooks/use-tx-modal-stages-unwrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
} from 'shared/transaction-modal/hooks/use-transaction-modal-stage';
import { getGeneralTransactionModalStages } from 'shared/transaction-modal/hooks/get-general-transaction-modal-stages';

import { VaultsBannerStrategies } from 'shared/banners/vaults-banner-strategies';
import { TxStageSignOperationAmount } from 'shared/transaction-modal/tx-stages-composed/tx-stage-amount-operation';
import { TxStageOperationSucceedBalanceShown } from 'shared/transaction-modal/tx-stages-composed/tx-stage-operation-succeed-balance-shown';

Expand Down Expand Up @@ -48,7 +47,6 @@ const getTxModalStagesUnwrap = (
balance={balance}
balanceToken={STAGE_OPERATION_ARGS.willReceiveToken}
operationText={'Unwrapping'}
footer={<VaultsBannerStrategies />}
/>,
{
isClosableOnLedger: true,
Expand Down
2 changes: 0 additions & 2 deletions features/wsteth/unwrap/unwrap-form/unwrap-form.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { FC, memo } from 'react';

import { InputWrap, WrapBlock } from 'features/wsteth/shared/styles';
import { VaultsBannerInfo } from 'shared/banners/vaults-banner-info';
import { FormController } from 'shared/hook-form/form-controller/form-controller';

import { UnwrapStats } from './unwrap-stats';
Expand All @@ -19,7 +18,6 @@ export const UnwrapForm: FC = memo(() => {
</InputWrap>
<SubmitButtonUnwrap />
</FormController>
<VaultsBannerInfo />
<UnwrapStats />
</WrapBlock>
</UnwrapFormProvider>
Expand Down
23 changes: 0 additions & 23 deletions features/wsteth/wrap/hooks/use-tx-modal-stages-wrap.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { Button, Link } from '@lidofinance/lido-ui';
import { trackEvent } from '@lidofinance/analytics-matomo';

import {
TransactionModalTransitStage,
useTransactionModalStage,
Expand All @@ -9,14 +6,10 @@ import { getGeneralTransactionModalStages } from 'shared/transaction-modal/hooks

import { TxStageSignOperationAmount } from 'shared/transaction-modal/tx-stages-composed/tx-stage-amount-operation';
import { TxStageOperationSucceedBalanceShown } from 'shared/transaction-modal/tx-stages-composed/tx-stage-operation-succeed-balance-shown';
import { LINK_EXPLORE_STRATEGIES } from 'shared/banners/vaults-banner-info/const';

import { getTokenDisplayName } from 'utils/getTokenDisplayName';
import type { BigNumber } from 'ethers';
import type { TokensWrappable } from 'features/wsteth/shared/types';
import { VaultsBannerInfo } from 'shared/banners/vaults-banner-info';

import { MATOMO_CLICK_EVENTS } from 'consts/matomo-click-events';

const STAGE_APPROVE_ARGS = {
willReceiveToken: 'wstETH',
Expand Down Expand Up @@ -89,22 +82,6 @@ const getTxModalStagesWrap = (transitStage: TransactionModalTransitStage) => ({
balance={balance}
balanceToken={'wstETH'}
operationText={'Wrapping'}
footer={
<>
<VaultsBannerInfo isTitleCompact showLearnMoreButton={false} />
<br />
<Link
href={LINK_EXPLORE_STRATEGIES}
onClick={() =>
trackEvent(...MATOMO_CLICK_EVENTS.exploreAllStrategiesAfterWrap)
}
>
<Button fullwidth size="sm">
Explore strategies
</Button>
</Link>
</>
}
/>,
{
isClosableOnLedger: true,
Expand Down
2 changes: 0 additions & 2 deletions features/wsteth/wrap/wrap-form/wrap-form.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { memo } from 'react';

import { VaultsBannerInfo } from 'shared/banners/vaults-banner-info';
import { FormController } from 'shared/hook-form/form-controller';

import { WrapFormStats } from './wrap-stats';
Expand All @@ -17,7 +16,6 @@ export const WrapForm: React.FC = memo(() => {
<InputGroupWrap />
<SubmitButtonWrap />
</FormController>
<VaultsBannerInfo />
<WrapFormStats />
</WrapBlock>
</WrapFormProvider>
Expand Down
1 change: 0 additions & 1 deletion shared/banners/vaults-banner-strategies/index.ts

This file was deleted.

112 changes: 0 additions & 112 deletions shared/banners/vaults-banner-strategies/styles.ts

This file was deleted.

This file was deleted.

0 comments on commit d82f791

Please sign in to comment.