Merge pull request #19961 from overleaf/td-contact-modal-sp-ce-fix

Fix SP and CE builds broken by Contact Us changes

GitOrigin-RevId: fb9099ed7d755b30ab8706facd6f0d95aefbad1e
This commit is contained in:
ilkin-overleaf
2024-08-22 14:00:54 +00:00
committed by Copybot
parent d4f808152e
commit b4ad1ed35d
5 changed files with 20 additions and 18 deletions
@@ -1,6 +1,5 @@
import importOverleafModules from '../../../macros/import-overleaf-module.macro'
import { JSXElementConstructor, useCallback, useState } from 'react'
import { HelpSuggestionSearchProvider } from '../../../../modules/support/frontend/js/context/help-suggestion-search-context'
const [contactUsModalModules] = importOverleafModules('contactUsModal')
const ContactUsModal: JSXElementConstructor<{
@@ -23,13 +22,11 @@ export const useContactUsModal = (options = { autofillProjectUrl: true }) => {
}, [])
const modal = ContactUsModal && (
<HelpSuggestionSearchProvider>
<ContactUsModal
show={show}
handleHide={hideModal}
autofillProjectUrl={options.autofillProjectUrl}
/>
</HelpSuggestionSearchProvider>
<ContactUsModal
show={show}
handleHide={hideModal}
autofillProjectUrl={options.autofillProjectUrl}
/>
)
return { modal, hideModal, showModal }