From 6822363dfac2df8d9010c9c2b3cef6067b2277df Mon Sep 17 00:00:00 2001 From: NejcZdovc Date: Tue, 24 Jul 2018 16:57:53 +0200 Subject: [PATCH] Imported from brave-ui: Adds TS lint for storybook --- stories/features/newTab/private/fakeData.ts | 2 +- stories/features/newTab/private/fakeLocale.ts | 2 +- stories/features/newTab/private/index.tsx | 15 ++++++++++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/stories/features/newTab/private/fakeData.ts b/stories/features/newTab/private/fakeData.ts index 919f0a051af7..7b94d9092f54 100644 --- a/stories/features/newTab/private/fakeData.ts +++ b/stories/features/newTab/private/fakeData.ts @@ -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', diff --git a/stories/features/newTab/private/fakeLocale.ts b/stories/features/newTab/private/fakeLocale.ts index 6ec114057092..4e8b4806d12a 100644 --- a/stories/features/newTab/private/fakeLocale.ts +++ b/stories/features/newTab/private/fakeLocale.ts @@ -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', diff --git a/stories/features/newTab/private/index.tsx b/stories/features/newTab/private/index.tsx index ce7090c219b1..ba9a91a8c681 100644 --- a/stories/features/newTab/private/index.tsx +++ b/stories/features/newTab/private/index.tsx @@ -36,20 +36,24 @@ class NewPrivateTab extends React.PureComponent { + counter={data.trackersBlockedCount} + /> + counter={data.adsBlockedCount} + /> + counter={data.httpsUpgradesCount} + /> + counter={data.estimatedTimeCount} + /> @@ -66,7 +70,8 @@ class NewPrivateTab extends React.PureComponent { id='togglePrivateSearchEngine' size='large' checked={false} - rightText={locale.switchLabel} /> + rightText={locale.switchLabel} + />