Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #437 from brave/console-fix
Browse files Browse the repository at this point in the history
Fixing panel console error
  • Loading branch information
ryanml authored Mar 27, 2019
2 parents d67680b + f463af5 commit aebb6e7
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ exports[`TipButton tests basic tests matches the snapshot 1`] = `
>
<span
className="c1"
icon={false}
/>
</button>
`;
2 changes: 1 addition & 1 deletion src/features/rewards/rewardsButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class RewardsButton extends React.PureComponent<Props, {}> {
onClick={onClick}
data-test-id={testId}
>
<StyledButtonText icon={!!icon}>
<StyledButtonText hasIcon={!!icon}>
{text}
{
icon
Expand Down
4 changes: 2 additions & 2 deletions src/features/rewards/rewardsButton/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import styled, { css } from 'styled-components'

interface StyleProps {
type?: Type
icon?: boolean
hasIcon?: boolean
disabled?: boolean
}

Expand Down Expand Up @@ -78,7 +78,7 @@ export const StyledButtonText = styled<StyleProps, 'span'>('span')`
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.39px;
margin: ${p => p.icon ? '-3px auto 0px' : '0 auto'};
margin: ${p => p.hasIcon ? '-3px auto 0px' : '0 auto'};
`

export const StyledIcon = styled<{}, 'div'>('div')`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ exports[`WalletPanel tests basic tests matches the snapshot 1`] = `
>
<span
className="c11"
icon={false}
>
MISSING: donateNow
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ exports[`DisabledPanel tests basic tests matches the snapshot 1`] = `
>
<span
className="c8"
icon={true}
>
MISSING: enableRewards
<div
Expand Down
2 changes: 0 additions & 2 deletions src/features/rewards/welcomePage/__snapshots__/spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,6 @@ exports[`WelcomePage tests basic tests matches the snapshot 1`] = `
>
<span
className="c18"
icon={false}
>
MISSING: braveRewardsOptInText
</span>
Expand Down Expand Up @@ -735,7 +734,6 @@ exports[`WelcomePage tests basic tests matches the snapshot 1`] = `
>
<span
className="c18"
icon={false}
>
MISSING: readyToTakePartOptInText
</span>
Expand Down

0 comments on commit aebb6e7

Please sign in to comment.