diff --git a/src/common/components/forms/FormInputKey.tsx b/src/common/components/forms/FormInputKey.tsx index a6ae3ff1d..e19a2b450 100644 --- a/src/common/components/forms/FormInputKey.tsx +++ b/src/common/components/forms/FormInputKey.tsx @@ -6,11 +6,13 @@ import VisibilityIcon from '@mui/icons-material/Visibility'; import VisibilityOffIcon from '@mui/icons-material/VisibilityOff'; import { getIsMobile } from '~/common/components/useMatchMedia'; +import { TooltipOutlined } from '~/common/components/TooltipOutlined'; export function FormInputKey(props: { autoCompleteId: string, // introduced to avoid clashes label?: string, rightLabel?: string | React.JSX.Element, + tooltip?: string, description?: string | React.JSX.Element, value: string, onChange: (value: string) => void, placeholder?: string, @@ -40,7 +42,13 @@ export function FormInputKey(props: { {!!props.label && - {props.label} + {props.tooltip ? ( + + {props.label} + + ) : ( + {props.label} + )} {!!props.rightLabel && {props.rightLabel} }