added withComboBox condition for TableGroupMenu

This commit is contained in:
Elyor Djalilov 2024-01-05 17:22:22 +05:00
parent 3824cfc6d0
commit c5bf08c302

View File

@ -27,6 +27,7 @@ const TableGroupMenu = (props) => {
withoutInfoPanelToggler, withoutInfoPanelToggler,
isMobileView, isMobileView,
isBlocked, isBlocked,
withComboBox,
...rest ...rest
} = props; } = props;
const onCheckboxChange = (e) => { const onCheckboxChange = (e) => {
@ -48,19 +49,22 @@ const TableGroupMenu = (props) => {
isIndeterminate={isIndeterminate} isIndeterminate={isIndeterminate}
title={t("Common:MainHeaderSelectAll")} title={t("Common:MainHeaderSelectAll")}
/> />
<ComboBox {withComboBox && (
id="menu-combobox" <ComboBox
comboIcon={TriangleNavigationDownReactSvgUrl} id="menu-combobox"
noBorder comboIcon={TriangleNavigationDownReactSvgUrl}
advancedOptions={checkboxOptions} noBorder
className="table-container_group-menu-combobox not-selectable" advancedOptions={checkboxOptions}
options={[]} className="table-container_group-menu-combobox not-selectable"
selectedOption={{}} options={[]}
manualY="42px" selectedOption={{}}
manualX="-32px" manualY="42px"
title={t("Common:TitleSelectFile")} manualX="-32px"
isMobileView={isMobileView} title={t("Common:TitleSelectFile")}
/> isMobileView={isMobileView}
/>
)}
<div className="table-container_group-menu-separator" /> <div className="table-container_group-menu-separator" />
<StyledScrollbar> <StyledScrollbar>
{headerMenu.map((item, index) => ( {headerMenu.map((item, index) => (
@ -97,5 +101,6 @@ TableGroupMenu.propTypes = {
onChange: PropTypes.func, onChange: PropTypes.func,
checkboxMargin: PropTypes.string, checkboxMargin: PropTypes.string,
withoutInfoPanelToggler: PropTypes.bool, withoutInfoPanelToggler: PropTypes.bool,
withComboBox: PropTypes.bool,
}; };
export default TableGroupMenu; export default TableGroupMenu;