From 0b38bb1f1ac212bf715cf2dfc0947ea75fc4a8c0 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 2 Jan 2020 17:30:58 -0500 Subject: [PATCH] moar cleanup --- ui/analytics.js | 3 +- ui/component/header/view.jsx | 8 +++-- ui/component/router/view.jsx | 2 +- ui/constants/pages.js | 2 +- ui/page/channel/view.jsx | 3 +- ui/page/following/view.jsx | 2 +- ui/page/search/view.jsx | 47 +++++++++++++++--------------- ui/page/tags/view.jsx | 7 +++++ ui/page/tagsFollowing/view.jsx | 2 +- ui/scss/component/_claim-list.scss | 16 ++++------ 10 files changed, 50 insertions(+), 42 deletions(-) diff --git a/ui/analytics.js b/ui/analytics.js index 3ff053bc1..242767d9f 100644 --- a/ui/analytics.js +++ b/ui/analytics.js @@ -43,7 +43,8 @@ type LogPublishParams = { channel_claim_id?: string, }; -let analyticsEnabled: boolean = true; +let analyticsEnabled: boolean = isProduction; + const analytics: Analytics = { error: message => { if (analyticsEnabled && isProduction) { diff --git a/ui/component/header/view.jsx b/ui/component/header/view.jsx index bba777a34..04cb8176c 100644 --- a/ui/component/header/view.jsx +++ b/ui/component/header/view.jsx @@ -147,13 +147,17 @@ const Header = (props: Props) => { history.push(`/$/${PAGES.PUBLISHED}`)}> - {__('Your Publishes')} + {__('Publishes')} + + history.push(`/$/${PAGES.PUBLISHED}`)}> + + {__('Channels')} {/* @if TARGET='app' */} history.push(`/$/${PAGES.PUBLISH}`)}> - {__('Your Library')} + {__('Library')} {/* @endif */} diff --git a/ui/component/router/view.jsx b/ui/component/router/view.jsx index 77e09cbe0..c1ddf8508 100644 --- a/ui/component/router/view.jsx +++ b/ui/component/router/view.jsx @@ -98,7 +98,7 @@ function AppRouter(props: Props) { - + diff --git a/ui/constants/pages.js b/ui/constants/pages.js index 15cc6a9ab..b94baa99e 100644 --- a/ui/constants/pages.js +++ b/ui/constants/pages.js @@ -21,9 +21,9 @@ exports.SEARCH = 'search'; exports.TRANSACTIONS = 'transactions'; exports.TAGS = 'tags'; exports.TAGS_FOLLOWING = 'following/tags'; +exports.TAGS_FOLLOWING_MANAGE = 'following/tags/manage'; exports.CHANNELS_FOLLOWING = 'following/channels'; exports.CHANNELS_FOLLOWING_MANAGE = 'following/channels/manage'; -exports.FOLLOWING = 'following'; exports.WALLET = 'wallet'; exports.BLOCKED = 'blocked'; exports.CHANNELS = 'channels'; diff --git a/ui/page/channel/view.jsx b/ui/page/channel/view.jsx index be3f77167..08dea0382 100644 --- a/ui/page/channel/view.jsx +++ b/ui/page/channel/view.jsx @@ -163,6 +163,8 @@ function ChannelPage(props: Props) { return ( + +
@@ -212,7 +214,6 @@ function ChannelPage(props: Props) {
)} -
- } - headerAltControls={ - - {__('Find what you were looking for?')} -
+ } + headerAltControls={ + + {__('Find what you were looking for?')} +