From 04c899f65318c26a25c158a47fef6ee0a270ecfa Mon Sep 17 00:00:00 2001 From: Lilian Houdelet Date: Wed, 6 Dec 2023 14:17:51 +0100 Subject: [PATCH] Add condition to hide Parameter button Signed-off-by: Lilian Houdelet --- src/components/TopBar/TopBar.js | 44 +++++++++++++++++---------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/src/components/TopBar/TopBar.js b/src/components/TopBar/TopBar.js index ce2a4a8e..e90bb160 100644 --- a/src/components/TopBar/TopBar.js +++ b/src/components/TopBar/TopBar.js @@ -569,27 +569,29 @@ const TopBar = ({ {/* Settings */} {/*If the callback onParametersClicked is undefined, parameters component should be disabled*/} - - - - - - - - - - + {onParametersClick && ( + + + + + + + + + + + )} {/* About */} {/*If the callback onAboutClick is undefined, we open default about dialog*/}