Only for admins

This commit is contained in:
Tom Moor
2018-12-25 17:18:20 -08:00
parent 96b1d6257e
commit d045b8975c
2 changed files with 6 additions and 2 deletions

View File

@ -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<Props, State> {
render() {
const { children } = this.props;
if (this.state.isHidden) return null;
if (this.props.disabled || this.state.isHidden) return null;
return (
<Wrapper align="center">