mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
19b38340ac
* Convert OLModal to named exports only
* Make closeButton the default for OLModalHeader
* Set `closeButton={false}` for modal that is not dismissible
* Fix duplicated imports
* Remove another unnecessary `closeButton` prop
* Fix import
---------
Co-authored-by: Antoine Clausse <antoine.clausse@overleaf.com>
GitOrigin-RevId: ddd7be6e59a966ac634683d2494d6e9d2c3732e6
27 lines
666 B
TypeScript
27 lines
666 B
TypeScript
import React from 'react'
|
|
import DictionaryModalContent from './dictionary-modal-content'
|
|
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
|
import { OLModal } from '@/shared/components/ol/ol-modal'
|
|
|
|
type DictionaryModalProps = {
|
|
show?: boolean
|
|
handleHide: () => void
|
|
}
|
|
|
|
function DictionaryModal({ show, handleHide }: DictionaryModalProps) {
|
|
return (
|
|
<OLModal
|
|
animation
|
|
show={show}
|
|
onHide={handleHide}
|
|
id="dictionary-modal"
|
|
data-testid="dictionary-modal"
|
|
size="sm"
|
|
>
|
|
<DictionaryModalContent handleHide={handleHide} />
|
|
</OLModal>
|
|
)
|
|
}
|
|
|
|
export default withErrorBoundary(DictionaryModal)
|