Skip to content

Commit

Permalink
Merge pull request #417 from lidofinance/develop
Browse files Browse the repository at this point in the history
Merge develop to main
  • Loading branch information
jake4take committed Jul 29, 2024
2 parents 8f99c9d + 781a472 commit f4910e2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions shared/wallet/l2-fallback/l2-fallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { CHAINS, L2_CHAINS } from 'consts/chains';
import { MATOMO_CLICK_EVENTS_TYPES } from 'consts/matomo-click-events';

import { L2FallbackWalletStyle, TextStyle, ButtonStyle } from './styles';
import { trackMatomoEvent } from '../../../utils/track-matomo-event';

export type L2FallbackComponent = FC<{ textEnding: string } & BlockProps>;

Expand Down Expand Up @@ -56,11 +57,15 @@ export const L2Fallback: L2FallbackComponent = (props) => {
Learn about Lido on L2 opportunities on {l2ChainName} network or switch
to Ethereum {defaultChainName} {props.textEnding}
</TextStyle>
<Link
href={`${config.rootOrigin}/lido-on-l2`}
data-matomo={MATOMO_CLICK_EVENTS_TYPES.lidoOnL2Opportunities}
>
<ButtonStyle size={'xs'}>Lido on L2 opportunities</ButtonStyle>
<Link href={`${config.rootOrigin}/lido-on-l2`}>
<ButtonStyle
size={'xs'}
onClick={() =>
trackMatomoEvent(MATOMO_CLICK_EVENTS_TYPES.lidoOnL2Opportunities)
}
>
Lido on L2 opportunities
</ButtonStyle>
</Link>
</L2FallbackWalletStyle>
);
Expand Down

0 comments on commit f4910e2

Please sign in to comment.