Changeset View
Changeset View
Standalone View
Standalone View
web/chat/edit-message-provider.js
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | const modalOverlay = React.useMemo(() => { | ||||
if (!modal) { | if (!modal) { | ||||
return null; | return null; | ||||
} | } | ||||
return ( | return ( | ||||
<ModalOverlay | <ModalOverlay | ||||
onClose={clearEditModal} | onClose={clearEditModal} | ||||
disableTab={true} | disableTab={true} | ||||
disableAutoFocus={true} | disableAutoFocus={true} | ||||
backgroundColor="var(--modal-overlay-background-80)" | |||||
> | > | ||||
{modal} | {modal} | ||||
</ModalOverlay> | </ModalOverlay> | ||||
); | ); | ||||
}, [clearEditModal, modal]); | }, [clearEditModal, modal]); | ||||
return ( | return ( | ||||
<EditModalContext.Provider value={value}> | <EditModalContext.Provider value={value}> | ||||
Show All 13 Lines |