From 2dd7848b9b69eba14864770aa0045b36aff1cb07 Mon Sep 17 00:00:00 2001 From: Chen-I Lim Date: Mon, 25 Jan 2021 14:02:44 -0800 Subject: [PATCH] Don't show share board action for single-user --- webapp/src/components/viewHeader.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/webapp/src/components/viewHeader.tsx b/webapp/src/components/viewHeader.tsx index 1df246718..f287ac87a 100644 --- a/webapp/src/components/viewHeader.tsx +++ b/webapp/src/components/viewHeader.tsx @@ -12,6 +12,7 @@ import ViewMenu from '../components/viewMenu' import {Constants} from '../constants' import {CsvExporter} from '../csvExporter' import mutator from '../mutator' +import {UserContext} from '../user' import {BoardTree} from '../viewModel/boardTree' import Button from '../widgets/buttons/button' import IconButton from '../widgets/buttons/iconButton' @@ -303,11 +304,15 @@ class ViewHeader extends React.Component { name={intl.formatMessage({id: 'ViewHeader.export-board-archive', defaultMessage: 'Export board archive'})} onClick={() => Archiver.exportBoardTree(boardTree)} /> */} - + + {(user) => (user && user.id !== 'single-user' && + + )} + {/*