From a1e8f1e4426ed3560ce1b76fb73a6969388ed253 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 7 Apr 2022 22:57:15 +0200 Subject: chore: add a SelectWithTooltip component --- src/components/molecules/buttons/help-button.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/components/molecules/buttons/help-button.tsx') diff --git a/src/components/molecules/buttons/help-button.tsx b/src/components/molecules/buttons/help-button.tsx index 4945bb4..d933829 100644 --- a/src/components/molecules/buttons/help-button.tsx +++ b/src/components/molecules/buttons/help-button.tsx @@ -3,14 +3,19 @@ import { FC } from 'react'; import { useIntl } from 'react-intl'; import styles from './help-button.module.scss'; -export type HelpButtonProps = Pick; +export type HelpButtonProps = Pick & { + /** + * Set additional classes to the button. + */ + classes?: string; +}; /** * HelpButton component * * Render a button with an interrogation mark icon. */ -const HelpButton: FC = ({ onClick }) => { +const HelpButton: FC = ({ classes = '', onClick }) => { const intl = useIntl(); const text = intl.formatMessage({ defaultMessage: 'Help', @@ -19,7 +24,11 @@ const HelpButton: FC = ({ onClick }) => { }); return ( - -- cgit v1.2.3