diff --git a/frontend/web/components/Switch.tsx b/frontend/web/components/Switch.tsx index b6b60f20206c..9d19b913d368 100644 --- a/frontend/web/components/Switch.tsx +++ b/frontend/web/components/Switch.tsx @@ -3,6 +3,7 @@ import RCSwitch, { Props as RCSwitchProps } from 'rc-switch' import Icon from './icons/Icon' export type SwitchProps = RCSwitchProps & { + id?: string checked?: boolean darkMode?: boolean offMarkup?: React.ReactNode diff --git a/frontend/web/components/base/forms/FieldLabel.tsx b/frontend/web/components/base/forms/FieldLabel.tsx index ab0e70686aa1..bd4f748a32ce 100644 --- a/frontend/web/components/base/forms/FieldLabel.tsx +++ b/frontend/web/components/base/forms/FieldLabel.tsx @@ -6,6 +6,7 @@ import Tooltip, { TooltipProps } from 'components/Tooltip' interface FieldLabelProps { // Associates the label with its control; required for accessibility. htmlFor?: string + id?: string children: ReactNode // Shows a danger asterisk after the label. required?: boolean @@ -22,11 +23,12 @@ const FieldLabel: FC = ({ children, className, htmlFor, + id, required, tooltip, tooltipPlace = 'top', }) => ( -