webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js in katello-3.16.0.rc3.1 vs webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js in katello-3.16.0.rc4

- old
+ new

@@ -104,23 +104,27 @@ }); }; getTableProps = () => { const { - subscriptions, emptyState, tableColumns, loadSubscriptions, canManageSubscriptionAllocations, + subscriptions, + emptyState, + tableColumns, + loadSubscriptions, + selectionEnabled, } = this.props; const { groupedSubscriptions, rows, editing } = this.state; return { emptyState, editing, groupedSubscriptions, loadSubscriptions, rows, subscriptions, + selectionEnabled, tableColumns, - canManageSubscriptionAllocations, toggleSubscriptionGroup: this.toggleSubscriptionGroup, inlineEditController: this.getInlineEditController(), selectionController: this.getSelectionController(), }; }; @@ -270,24 +274,26 @@ SubscriptionsTable.propTypes = { tableColumns: PropTypes.arrayOf(PropTypes.string).isRequired, loadSubscriptions: PropTypes.func.isRequired, updateQuantity: PropTypes.func.isRequired, emptyState: PropTypes.shape({}).isRequired, - canManageSubscriptionAllocations: PropTypes.bool, subscriptions: PropTypes.shape({ loading: PropTypes.bool, availableQuantities: PropTypes.shape({}), + // Disabling rule as existing code failed due to an eslint-plugin-react update + // eslint-disable-next-line react/forbid-prop-types results: PropTypes.array, }).isRequired, subscriptionDeleteModalOpen: PropTypes.bool.isRequired, onDeleteSubscriptions: PropTypes.func.isRequired, onSubscriptionDeleteModalClose: PropTypes.func.isRequired, toggleDeleteButton: PropTypes.func.isRequired, selectedRows: PropTypes.instanceOf(Array).isRequired, onSelectedRowsChange: PropTypes.func.isRequired, + selectionEnabled: PropTypes.bool, }; SubscriptionsTable.defaultProps = { - canManageSubscriptionAllocations: false, + selectionEnabled: false, }; export default SubscriptionsTable;