mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #15474 from overleaf/td-ide-page-file-and-multiple-view
React IDE page: implement file views and file delete handling GitOrigin-RevId: 491cad7b147e55bc4a250da387916c7e2dff14ae
This commit is contained in:
@@ -11,6 +11,7 @@ import GenericMessageModal, {
|
||||
} from '@/features/ide-react/components/modals/generic-message-modal'
|
||||
|
||||
type ModalsContextValue = {
|
||||
genericModalVisible: boolean
|
||||
showGenericMessageModal: (
|
||||
title: GenericMessageModalOwnProps['title'],
|
||||
message: GenericMessageModalOwnProps['message']
|
||||
@@ -42,8 +43,9 @@ export const ModalsContextProvider: FC = ({ children }) => {
|
||||
const value = useMemo<ModalsContextValue>(
|
||||
() => ({
|
||||
showGenericMessageModal,
|
||||
genericModalVisible: showGenericModal,
|
||||
}),
|
||||
[showGenericMessageModal]
|
||||
[showGenericMessageModal, showGenericModal]
|
||||
)
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user