Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 314a2ab

Browse files
committed
lint errors
1 parent 48f41b2 commit 314a2ab

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

ts/components/banner.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface Props {
1717
secondaryCta?: CTAButton;
1818
theme?: IThemeInterface;
1919
padding?: string;
20-
mainCtaCentered?: boolean;
20+
isMainCtaCentered?: boolean;
2121
}
2222

2323
interface CTAButton {
@@ -32,8 +32,7 @@ interface BorderProps {
3232
}
3333

3434
export const Banner: React.StatelessComponent<Props> = (props: Props) => {
35-
const { heading, subline, mainCta, secondaryCta, customCta, padding, mainCtaCentered } = props;
36-
console.log(padding);
35+
const { heading, subline, mainCta, secondaryCta, customCta, padding, isMainCtaCentered } = props;
3736
return (
3837
<CustomSection
3938
bgColor={colors.brandDark}
@@ -56,7 +55,7 @@ export const Banner: React.StatelessComponent<Props> = (props: Props) => {
5655
)}
5756
</Column>
5857
<ColumnCta>
59-
{mainCta && mainCtaCentered && (
58+
{mainCta && isMainCtaCentered && (
6059
<ButtonWrapCentered>
6160
<Button
6261
color={colors.white}
@@ -72,7 +71,7 @@ export const Banner: React.StatelessComponent<Props> = (props: Props) => {
7271
<ButtonWrap>
7372
{customCta}
7473

75-
{mainCta && !mainCtaCentered && (
74+
{mainCta && !isMainCtaCentered && (
7675
<Button
7776
color={colors.white}
7877
isTransparent={false}

ts/pages/account/dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ export const Account: React.FC<AccountProps> = () => {
450450
<HeaderWrapper>
451451
<BannerWrapper>
452452
<Banner
453-
mainCtaCentered={true}
453+
isMainCtaCentered={true}
454454
padding={'50px'}
455455
heading={`Staking Notice`}
456456
subline="The staking system is currently paused until an issue with the finalization logic is resolved. All user funds are safe. Thank you!"

ts/pages/staking/home.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import styled from 'styled-components';
77
import { colors } from 'ts/style/colors';
88

99
import { State } from 'ts/redux/reducer';
10-
import { Banner } from 'ts/components/banner';
1110

11+
import { Banner } from 'ts/components/banner';
1212
import { Button } from 'ts/components/button';
1313
import { CFLMetrics } from 'ts/pages/cfl/cfl_metrics';
1414

@@ -111,7 +111,7 @@ export const StakingIndex: React.FC<StakingIndexProps> = () => {
111111
return (
112112
<StakingPageLayout isHome={true} title="0x Staking">
113113
<Banner
114-
mainCtaCentered={true}
114+
isMainCtaCentered={true}
115115
padding={'50px'}
116116
heading={`Staking Notice`}
117117
subline="The staking system is currently paused until an issue with the finalization logic is resolved. All user funds are safe. Thank you!"

0 commit comments

Comments
 (0)