From 1d162d7aafb3cfe2c3351b5fd891bbf6d476e9b2 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 14 Apr 2022 19:25:46 +0200 Subject: chore: add a Settings component --- src/components/organisms/modals/settings-modal.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/components/organisms/modals/settings-modal.tsx') diff --git a/src/components/organisms/modals/settings-modal.tsx b/src/components/organisms/modals/settings-modal.tsx index 0fac332..25d6f6f 100644 --- a/src/components/organisms/modals/settings-modal.tsx +++ b/src/components/organisms/modals/settings-modal.tsx @@ -10,9 +10,13 @@ import styles from './settings-modal.module.scss'; export type SettingsModalProps = { /** - * Set additional classnames to modal wrapper. + * Set additional classnames to the modal wrapper. */ className?: string; + /** + * Set additional classnames to the tooltip wrapper. + */ + tooltipClassName?: string; }; /** @@ -20,7 +24,10 @@ export type SettingsModalProps = { * * Render a modal with settings options. */ -const SettingsModal: VFC = ({ className }) => { +const SettingsModal: VFC = ({ + className = '', + tooltipClassName = '', +}) => { const intl = useIntl(); const title = intl.formatMessage({ defaultMessage: 'Settings', @@ -33,6 +40,7 @@ const SettingsModal: VFC = ({ className }) => { title={title} icon="cogs" className={`${styles.wrapper} ${className}`} + headingClassName={styles.heading} >
null}> @@ -41,7 +49,7 @@ const SettingsModal: VFC = ({ className }) => { -- cgit v1.2.3