mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
Template gallery: Fix OLModal usage (see upstream commit 19b3834)
This commit is contained in:
@@ -125,7 +125,7 @@ export default function ManageTemplateModalContent({
|
||||
|
||||
return (
|
||||
<div ref={modalRef}>
|
||||
<OLModalHeader closeButton>
|
||||
<OLModalHeader>
|
||||
<OLModalTitle>{t('publish_as_template')}</OLModalTitle>
|
||||
</OLModalHeader>
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import React, { memo, useCallback, useState } from 'react'
|
||||
import OLModal from '@/shared/components/ol/ol-modal'
|
||||
import { OLModal } from '@/shared/components/ol/ol-modal'
|
||||
import ManageTemplateModalContent from './manage-template-modal-content'
|
||||
import type { Template } from '../../../../../../types/template'
|
||||
|
||||
|
||||
@@ -6,7 +6,8 @@ import { isSmallDevice } from '@/infrastructure/event-tracking'
|
||||
import useIsMounted from '@/shared/hooks/use-is-mounted'
|
||||
import Notification from '@/shared/components/notification'
|
||||
import OLButton from '@/shared/components/ol/ol-button'
|
||||
import OLModal, {
|
||||
import {
|
||||
OLModal,
|
||||
OLModalBody,
|
||||
OLModalFooter,
|
||||
OLModalHeader,
|
||||
@@ -100,7 +101,7 @@ function TemplateActionModal({
|
||||
backdrop="static"
|
||||
>
|
||||
<div ref={modalRef}>
|
||||
<OLModalHeader closeButton>
|
||||
<OLModalHeader>
|
||||
<OLModalTitle>{title}</OLModalTitle>
|
||||
</OLModalHeader>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user