chore: added disabled prop to multiple select components (#4724)
* chore: added disabled prop to mutliple select group hoc * style: fix empty space
This commit is contained in:
parent
cdb932ab67
commit
1c849103f9
13 changed files with 62 additions and 18 deletions
|
|
@ -11,11 +11,11 @@ type Props = {
|
|||
};
|
||||
|
||||
export const IssueBulkOperationsRoot: React.FC<Props> = observer((props) => {
|
||||
const { className } = props;
|
||||
const { className, selectionHelpers } = props;
|
||||
// store hooks
|
||||
const { isSelectionActive } = useMultipleSelectStore();
|
||||
|
||||
if (!isSelectionActive) return null;
|
||||
if (!isSelectionActive || selectionHelpers.isSelectionDisabled) return null;
|
||||
|
||||
return <BulkOperationsUpgradeBanner className={className} />;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue