diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-10-31 16:00:45 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-11 18:15:27 +0100 |
| commit | 3ff4c37a7a2c40340c17f9e6c1754444bce0f839 (patch) | |
| tree | 551ca3df148d46af2bd27995fa98c01378030644 /src/components/organisms/modals/settings-modal.tsx | |
| parent | 0e52a59917406ad03c174e030c6c1c92ab23449d (diff) | |
refactor(components): rewrite Modal component
* add an optional close button
* add an icon prop
Diffstat (limited to 'src/components/organisms/modals/settings-modal.tsx')
| -rw-r--r-- | src/components/organisms/modals/settings-modal.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/organisms/modals/settings-modal.tsx b/src/components/organisms/modals/settings-modal.tsx index 94d69e2..36c5977 100644 --- a/src/components/organisms/modals/settings-modal.tsx +++ b/src/components/organisms/modals/settings-modal.tsx @@ -1,6 +1,7 @@ import { useCallback, type FC, type FormEvent } from 'react'; import { useIntl } from 'react-intl'; -import { Heading, Icon, Modal, type ModalProps } from '../../atoms'; +import { Heading, Icon } from '../../atoms'; +import { Modal, type ModalProps } from '../../molecules'; import { SettingsForm } from '../forms'; import styles from './settings-modal.module.scss'; @@ -31,9 +32,9 @@ export const SettingsModal: FC<SettingsModalProps> = ({ className = '' }) => { return ( <Modal className={`${styles.wrapper} ${className}`} + icon={<Icon className={styles.icon} shape="cog" />} heading={ <Heading isFake level={3}> - <Icon className={styles.icon} shape="cog" /> {title} </Heading> } |
