Skip to content

Commit

Permalink
Imported from brave-ui: Merge pull request brave#48 from brave/lint-s…
Browse files Browse the repository at this point in the history
…tory

Adds TS lint for storybook
  • Loading branch information
ryanml committed Jul 24, 2018
2 parents 57090f8 + 6822363 commit 5c7215d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stories/features/newTab/private/fakeData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* License. v. 2.0. If a copy of the MPL was not distributed with this file.
* You can obtain one at http://mozilla.org/MPL/2.0/. */

const data = {
const data = {
trackersBlockedCount: '9,245',
adsBlockedCount: '3,784',
httpsUpgradesCount: '5,663',
Expand Down
2 changes: 1 addition & 1 deletion stories/features/newTab/private/fakeLocale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* License. v. 2.0. If a copy of the MPL was not distributed with this file.
* You can obtain one at http://mozilla.org/MPL/2.0/. */

const locale = {
const locale = {
trackersBlocked: 'Trackers Blocked',
adsBlocked: 'Ads Blocked',
httpsUpgrades: 'HTTPS Upgrades',
Expand Down
15 changes: 10 additions & 5 deletions stories/features/newTab/private/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,24 @@ class NewPrivateTab extends React.PureComponent {
<DataItem
theme={theme.trackersBlocked}
description={locale.trackersBlocked}
counter={data.trackersBlockedCount} />
counter={data.trackersBlockedCount}
/>
<DataItem
theme={theme.adsBlocked}
description={locale.adsBlocked}
counter={data.adsBlockedCount} />
counter={data.adsBlockedCount}
/>
<DataItem
theme={theme.httpsUpgrades}
description={locale.httpsUpgrades}
counter={data.httpsUpgradesCount} />
counter={data.httpsUpgradesCount}
/>
<DataItem
theme={theme.estimatedTime}
description={locale.estimatedTime}
text={locale.minutes}
counter={data.estimatedTimeCount} />
counter={data.estimatedTimeCount}
/>
</DataBlock>
</Column>
<Column size={1} theme={theme.clockContainer}>
Expand All @@ -66,7 +70,8 @@ class NewPrivateTab extends React.PureComponent {
id='togglePrivateSearchEngine'
size='large'
checked={false}
rightText={locale.switchLabel} />
rightText={locale.switchLabel}
/>
</BoxedContent>
<Paragraph theme={theme.text} text={locale.paragraph3} />
</MediaContent>
Expand Down

0 comments on commit 5c7215d

Please sign in to comment.