Skip to content

Commit

Permalink
Merge pull request #2173 from brave/rewards-settings
Browse files Browse the repository at this point in the history
Rewards settings style
  • Loading branch information
rossmoody committed Apr 23, 2019
2 parents 9434151 + 9ba457c commit b0e01ff
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions components/brave_rewards/resources/ui/components/adsBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class AdsBox extends React.Component<Props, State> {
<DisabledContent
type={'ads'}
>
{getLocale('adsDisabledTextOne')} <br />
{getLocale('adsDisabledTextTwo')}
{getLocale('adsDisabledTextOne')} <br />
{getLocale('adsDisabledTextTwo')}
</DisabledContent>
)
}
Expand Down Expand Up @@ -86,7 +86,7 @@ class AdsBox extends React.Component<Props, State> {
const { adsPerHour } = this.props.rewardsData.adsData

return (
<Grid columns={1} customStyle={{ maxWidth: '270px', margin: '0 auto' }}>
<Grid columns={1} customStyle={{ margin: '0 auto' }}>
<Column size={1} customStyle={{ justifyContent: 'center', flexWrap: 'wrap' }}>
<ControlWrapper text={getLocale('adsPerHour')}>
<Select
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ class ContributeBox extends React.Component<Props, State> {
<DisabledContent
type={'contribute'}
>
{getLocale('contributionDisabledText1')} <br />
{getLocale('contributionDisabledText2')}
{getLocale('contributionDisabledText1')} <br />
{getLocale('contributionDisabledText2')}
</DisabledContent>
)
}
Expand Down Expand Up @@ -120,7 +120,7 @@ class ContributeBox extends React.Component<Props, State> {
}

return (
<Grid columns={1} customStyle={{ maxWidth: '270px', margin: '0 auto' }}>
<Grid columns={1} customStyle={{ margin: '0 auto' }}>
<Column size={1} customStyle={{ justifyContent: 'center', flexWrap: 'wrap' }}>
<ControlWrapper text={getLocale('contributionMonthly')}>
<Select
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class DonationBox extends React.Component<Props, State> {
<DisabledContent
type={'donation'}
>
{getLocale('donationDisabledText1')}<br/>
{getLocale('donationDisabledText2')}
{getLocale('donationDisabledText1')}<br/>
{getLocale('donationDisabledText2')}
</DisabledContent>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class SettingsPage extends React.Component<Props, {}> {
}

return (
<>
<div style={{ width: '100%' }}>
{grants.map((grant?: Rewards.Grant, index?: number) => {
if (!grant || !grant.promotionId) {
return null
Expand All @@ -129,7 +129,7 @@ class SettingsPage extends React.Component<Props, {}> {
</div>
)
})}
</>
</div>
)
}

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
"@types/react-redux": "6.0.4",
"@types/redux-logger": "^3.0.7",
"awesome-typescript-loader": "^5.2.1",
"brave-ui": "github:brave/brave-ui#f2762fd62577aa5e177b462ead9c3c32ef8d915a",
"brave-ui": "github:brave/brave-ui#120b4f17c65a23c9f4dd54b1f61e6e5c10751c82",
"css-loader": "^2.1.1",
"csstype": "^2.5.5",
"deep-freeze-node": "^1.1.3",
Expand Down

0 comments on commit b0e01ff

Please sign in to comment.