feature(SearchModal): Reverting Modal component toggleModal

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Renan Mendes Carvalho <aitherios@gmail.com>
This commit is contained in:
Renan Mendes Carvalho
2023-03-09 16:30:19 +01:00
committed by Fredrik Adelöw
parent 4c916d5187
commit 3b9e96c536
@@ -186,9 +186,7 @@ export const SearchModal = (props: SearchModalProps) => {
>
{open && (
<SearchContextProvider inheritParentContextIfAvailable>
{(children && children({ toggleModal })) ?? (
<Modal />
)}
{(children && children({ toggleModal })) ?? <Modal />}
</SearchContextProvider>
)}
</Dialog>