diff --git a/components/common/MenuButton.js b/components/common/MenuButton.js index 40df2e0c..eb8d62fe 100644 --- a/components/common/MenuButton.js +++ b/components/common/MenuButton.js @@ -16,6 +16,7 @@ function MenuButton({ menuAlign = 'right', onSelect, renderValue, + hideLabel, }) { const [showMenu, setShowMenu] = useState(false); const ref = useRef(); @@ -44,7 +45,9 @@ function MenuButton({ onClick={toggleMenu} variant="light" > -
{renderValue ? renderValue(selectedOption) : value}
+ {!hideLabel && ( +
{renderValue ? renderValue(selectedOption) : value}
+ )} {showMenu && ( option?.display} onSelect={handleSelect} + hideLabel /> ); }