mirror of
https://github.com/fleetdm/fleet
synced 2026-05-16 05:28:38 +00:00
## Addresses #17496 - Encapsulate logic for generating custom dropdown options - Apply that logic to the team and global host status webhook settings forms, as well as the edit query form - Hide and show global host status webhook setting fields to match the fresher UX of the team setting  - [x] Changes file added for user-visible changes in `changes/` - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
14 lines
339 B
TypeScript
14 lines
339 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;
|
|
}
|