From a4f1a2e224d2f77a4a0743c0337182c6cc4838be Mon Sep 17 00:00:00 2001 From: seanyesmunt Date: Wed, 18 Mar 2020 13:33:17 -0400 Subject: [PATCH] add badge to analytics page link --- ui/component/channelSelector/view.jsx | 2 +- ui/component/common/icon-custom.jsx | 2 +- ui/component/header/view.jsx | 7 +++++++ ui/component/sideNavigation/view.jsx | 4 ++-- ui/constants/icons.js | 1 + ui/page/fileListPublished/view.jsx | 2 -- ui/scss/component/_card.scss | 1 - ui/scss/component/menu-button.scss | 15 ++++++++++++--- ui/scss/init/_vars.scss | 2 +- 9 files changed, 25 insertions(+), 11 deletions(-) diff --git a/ui/component/channelSelector/view.jsx b/ui/component/channelSelector/view.jsx index fa6303cca..8ae4e07d0 100644 --- a/ui/component/channelSelector/view.jsx +++ b/ui/component/channelSelector/view.jsx @@ -43,7 +43,7 @@ function ChannelSelector(props: Props) { - + {channels && channels.map(channel => ( onChannelSelect(channel.canonical_url)}> diff --git a/ui/component/common/icon-custom.jsx b/ui/component/common/icon-custom.jsx index 51eec66ba..353f867ad 100644 --- a/ui/component/common/icon-custom.jsx +++ b/ui/component/common/icon-custom.jsx @@ -425,7 +425,7 @@ export const icons = { ), - [ICONS.SCIENCE]: buildIcon( + [ICONS.ANALYTICS]: buildIcon( diff --git a/ui/component/header/view.jsx b/ui/component/header/view.jsx index ed110d78c..a28802b2d 100644 --- a/ui/component/header/view.jsx +++ b/ui/component/header/view.jsx @@ -167,6 +167,13 @@ const Header = (props: Props) => { {__('Channels')} + history.push(`/$/${PAGES.CREATOR_DASHBOARD}`)}> + + {__('Creator Analytics')} + + New! + + history.push(`/$/${PAGES.REWARDS}`)}> {__('Rewards')} diff --git a/ui/component/sideNavigation/view.jsx b/ui/component/sideNavigation/view.jsx index 6c269420a..aa4d84a37 100644 --- a/ui/component/sideNavigation/view.jsx +++ b/ui/component/sideNavigation/view.jsx @@ -168,11 +168,11 @@ function SideNavigation(props: Props) { ].map( linkProps => Object.keys(linkProps).length > 0 && - (linkProps && ( + linkProps && (
  • - )) + ) )} diff --git a/ui/constants/icons.js b/ui/constants/icons.js index 52129dc6b..8424cfe9a 100644 --- a/ui/constants/icons.js +++ b/ui/constants/icons.js @@ -91,3 +91,4 @@ export const REPOST = 'Repeat'; export const VALIDATED = 'Check'; export const SLIDERS = 'Sliders'; export const SCIENCE = 'Science'; +export const ANALYTICS = 'BarChart2'; diff --git a/ui/page/fileListPublished/view.jsx b/ui/page/fileListPublished/view.jsx index 79258631f..51631abfb 100644 --- a/ui/page/fileListPublished/view.jsx +++ b/ui/page/fileListPublished/view.jsx @@ -1,5 +1,4 @@ // @flow -import * as PAGES from 'constants/pages'; import React, { useEffect } from 'react'; import Button from 'component/button'; import ClaimList from 'component/claimList'; @@ -29,7 +28,6 @@ function FileListPublished(props: Props) { return ( -