mirror of
https://github.com/fleetdm/fleet
synced 2026-05-16 05:28:38 +00:00
* Display packs page at /packs/manage * Adds NumberPill component * Filter packs list * Render the pack info side panel when no packs are selected * Adds packs list * Moves state management to page component * Display selected pack count * Render bulk action buttons * API client - update pack * API client - destroy pack * Adds update/destroy functions to packs redux config * Bulk actions (enable, disable, delete) * Selecting a pack updates state * PackDetailsSidePanel updates pack status * Link to edit pack on side panel * sets selected pack in URL * Sets color for unsettled buttons * Loads scheduled queries for selected pack in All Packs Page * PackDetailsSidePanel component * PackDetailsSidePanel styles * styles PacksList component * Stop rendering flash when pack status is updated * Makes full row clickable * highlight selected pack
15 lines
489 B
JavaScript
15 lines
489 B
JavaScript
import React, { PropTypes } from 'react';
|
|
|
|
const ClickableTableRow = ({ children, className, onClick }) => {
|
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
return <tr className={className} onClick={onClick} tabIndex={-1}>{children}</tr>;
|
|
/* eslint-enable jsx-a11y/no-static-element-interactions */
|
|
};
|
|
|
|
ClickableTableRow.propTypes = {
|
|
children: PropTypes.node,
|
|
className: PropTypes.string,
|
|
onClick: PropTypes.func.isRequired,
|
|
};
|
|
|
|
export default ClickableTableRow;
|