-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from lidofinance/develop
Merge develop to main
- Loading branch information
Showing
12 changed files
with
90 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,44 @@ | ||
import { useCallback } from 'react'; | ||
import { | ||
Banner, | ||
L2Icons, | ||
LinkButton, | ||
TextContent, | ||
OverlayLink, | ||
FooterWrapper, | ||
} from './styles'; | ||
import { L2_DISCOVERY_LINK } from '../l2-banner'; | ||
import { MATOMO_CLICK_EVENTS } from 'config'; | ||
import { trackEvent } from '@lidofinance/analytics-matomo'; | ||
|
||
const linkClickHandler = () => trackEvent(...MATOMO_CLICK_EVENTS.l2BannerWrap); | ||
type L2WstethProps = { | ||
matomoEventLink: | ||
| typeof MATOMO_CLICK_EVENTS.l2BannerWrap | ||
| typeof MATOMO_CLICK_EVENTS.l2BannerUnwrap; | ||
}; | ||
|
||
export const L2Wsteth = () => { | ||
export const L2Wsteth = ({ matomoEventLink }: L2WstethProps) => { | ||
const linkClickHandler = useCallback( | ||
() => trackEvent(...matomoEventLink), | ||
[matomoEventLink], | ||
); | ||
return ( | ||
<Banner data-testid="L2wstETHbanner"> | ||
<L2Icons /> | ||
<TextContent> | ||
Enjoy <b>lower gas</b> fees and <b>DeFi opportunities</b> using wstETH | ||
across Arbitrum, Optimism and Base. | ||
across Arbitrum, Optimism, Base and zkSync. | ||
</TextContent> | ||
<OverlayLink | ||
href={L2_DISCOVERY_LINK} | ||
onClick={linkClickHandler} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<LinkButton>Learn More</LinkButton> | ||
</OverlayLink> | ||
<FooterWrapper> | ||
<L2Icons /> | ||
<OverlayLink | ||
href={L2_DISCOVERY_LINK} | ||
onClick={linkClickHandler} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<LinkButton data-testid="l2WSstethlearnMore">Learn More</LinkButton> | ||
</OverlayLink> | ||
</FooterWrapper> | ||
</Banner> | ||
); | ||
}; |
Oops, something went wrong.