mirror of
https://github.com/fleetdm/fleet
synced 2026-05-17 05:58:40 +00:00
## Addresses #18382 - Do not disable option when `scripts_enabled: null` - Update disabled tooltip copy for 3 actions - Generalize dropdown with tooltip component to work for disabled and non-disabled (now unused, but was used in prototype before product input) cases   - [x] Added/updated tests - [x] Manual QA for all new/changed functionality - [x] Confirm previously disabled options with tooltips still work as expected with generalized dropdown option with tooltip --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
15 lines
380 B
TypeScript
15 lines
380 B
TypeScript
import PropTypes from "prop-types";
|
|
|
|
export default PropTypes.shape({
|
|
disabled: PropTypes.bool,
|
|
label: PropTypes.string,
|
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
});
|
|
|
|
export interface IDropdownOption {
|
|
disabled?: boolean;
|
|
label: string | JSX.Element;
|
|
value: string | number;
|
|
premiumOnly?: boolean;
|
|
tooltipContent?: string | JSX.Element;
|
|
}
|