Skip to content

Commit

Permalink
Merge pull request #294 from lidofinance/add-attributes
Browse files Browse the repository at this point in the history
Add attributes stakePage
  • Loading branch information
itaven authored Mar 20, 2024
2 parents b5f3ea2 + 779d64f commit 7e41366
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const SwapDiscountBanner = ({ children }: React.PropsWithChildren) => {
} = data;
const Link = CustomLink ?? OverlayLink;
return (
<Wrap>
<Wrap data-testid="oneInchDiscountBanner">
<Icon />
<TextWrap>
<BannerText discountPercent={discountPercent} />
Expand Down
6 changes: 3 additions & 3 deletions shared/banners/l2-banner/l2-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type L2BannerProps = {
buttonText: React.ReactNode;
buttonHref?: string;
isLocalLink?: boolean;
testidWrap?: string;
testId?: string;
testidButton?: string;
onClickButton?: () => void;
};
Expand All @@ -28,7 +28,7 @@ export const L2Banner = ({
buttonText,
buttonHref = L2_DISCOVERY_LINK,
isLocalLink,
testidWrap,
testId,
testidButton,
onClickButton,
}: L2BannerProps) => {
Expand All @@ -51,7 +51,7 @@ export const L2Banner = ({
);

return (
<Wrapper data-testid={testidWrap}>
<Wrapper data-testid={testId}>
{title && <TextHeader>{title}</TextHeader>}
<TextWrap>{text}</TextWrap>
<FooterWrap>
Expand Down
2 changes: 1 addition & 1 deletion shared/banners/l2-banners/l2-after-stake.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const L2AfterStake: React.FC = () => {
}
buttonText="Learn more"
buttonHref={L2_DISCOVERY_LINK}
testidWrap="l2LowFeeBanner"
testId="l2LowFeeBanner"
testidButton="l2LowFee"
onClickButton={linkClickHandler}
/>
Expand Down
2 changes: 1 addition & 1 deletion shared/banners/l2-banners/l2-after-wrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const L2AfterWrap = () => {
}
buttonText="Learn more"
buttonHref={L2_LEARN_MORE_AFTER_WRAP_LINK}
testidWrap="l2LowFeeBanner"
testId="l2LowFeeBanner"
testidButton="l2LowFee"
onClickButton={linkClickHandler}
/>
Expand Down
1 change: 1 addition & 0 deletions shared/banners/l2-banners/l2-from-stake-to-wrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const linkClickHandler = () => trackEvent(...MATOMO_CLICK_EVENTS.l2BannerStake);
export const L2FromStakeToWrap = () => {
return (
<L2Banner
testId="L2Banner"
buttonText="Go to Wrap"
buttonHref={URLS.WRAP_PATH}
isLocalLink
Expand Down
2 changes: 1 addition & 1 deletion shared/banners/l2-banners/l2-wsteth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const L2Wsteth = ({ matomoEventLink }: L2WstethProps) => {
);
return (
<L2Banner
testidWrap="L2wstETHbanner"
testId="L2wstETHbanner"
testidButton="l2WSstethlearnMore"
buttonText="Learn More"
onClickButton={linkClickHandler}
Expand Down

0 comments on commit 7e41366

Please sign in to comment.