Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge develop to main #417

Merged
merged 2 commits into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading