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:
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>
|
||||
|
||||
Reference in New Issue
Block a user