aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/modals/search-modal.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-22 19:34:01 +0200
committerArmand Philippot <git@armandphilippot.com>2023-10-24 12:23:48 +0200
commita6ff5eee45215effb3344cb5d631a27a7c0369aa (patch)
tree5051747acf72318b4fc5c18d603e3757fbefdfdb /src/components/organisms/modals/search-modal.tsx
parent651ea4fc992e77d2f36b3c68f8e7a70644246067 (diff)
refactor(components): rewrite form components
Diffstat (limited to 'src/components/organisms/modals/search-modal.tsx')
-rw-r--r--src/components/organisms/modals/search-modal.tsx13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/components/organisms/modals/search-modal.tsx b/src/components/organisms/modals/search-modal.tsx
index 7ba770f..7d772df 100644
--- a/src/components/organisms/modals/search-modal.tsx
+++ b/src/components/organisms/modals/search-modal.tsx
@@ -1,6 +1,6 @@
import { forwardRef, ForwardRefRenderFunction } from 'react';
import { useIntl } from 'react-intl';
-import { Modal, type ModalProps } from '../../molecules';
+import { Heading, Modal, type ModalProps } from '../../atoms';
import { SearchForm, type SearchFormProps } from '../forms';
import styles from './search-modal.module.scss';
@@ -23,8 +23,15 @@ const SearchModalWithRef: ForwardRefRenderFunction<
});
return (
- <Modal className={`${styles.wrapper} ${className}`} title={modalTitle}>
- <SearchForm hideLabel={true} ref={ref} searchPage={searchPage} />
+ <Modal
+ className={`${styles.wrapper} ${className}`}
+ heading={
+ <Heading isFake level={3}>
+ {modalTitle}
+ </Heading>
+ }
+ >
+ <SearchForm isLabelHidden ref={ref} searchPage={searchPage} />
</Modal>
);
};