From d045b8975c3183e9efa26a30b6ca95cb504d2467 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 25 Dec 2018 17:18:20 -0800 Subject: [PATCH] Only for admins --- app/components/Tip.js | 3 ++- app/scenes/Dashboard.js | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/components/Tip.js b/app/components/Tip.js index 89e5d79d..8836f801 100644 --- a/app/components/Tip.js +++ b/app/components/Tip.js @@ -9,6 +9,7 @@ import Flex from 'shared/components/Flex'; type Props = { id: string, children: React.Node, + disabled?: boolean, }; type State = { @@ -31,7 +32,7 @@ class Tip extends React.Component { render() { const { children } = this.props; - if (this.state.isHidden) return null; + if (this.props.disabled || this.state.isHidden) return null; return ( diff --git a/app/scenes/Dashboard.js b/app/scenes/Dashboard.js index 7ab1019f..47114723 100644 --- a/app/scenes/Dashboard.js +++ b/app/scenes/Dashboard.js @@ -29,8 +29,11 @@ class Dashboard extends React.Component { return ( - {auth.team.subdomain && } +

Home