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 (
|
return (
|
||||||
<div ref={modalRef}>
|
<div ref={modalRef}>
|
||||||
<OLModalHeader closeButton>
|
<OLModalHeader>
|
||||||
<OLModalTitle>{t('publish_as_template')}</OLModalTitle>
|
<OLModalTitle>{t('publish_as_template')}</OLModalTitle>
|
||||||
</OLModalHeader>
|
</OLModalHeader>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React, { memo, useCallback, useState } from 'react'
|
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 ManageTemplateModalContent from './manage-template-modal-content'
|
||||||
import type { Template } from '../../../../../../types/template'
|
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 useIsMounted from '@/shared/hooks/use-is-mounted'
|
||||||
import Notification from '@/shared/components/notification'
|
import Notification from '@/shared/components/notification'
|
||||||
import OLButton from '@/shared/components/ol/ol-button'
|
import OLButton from '@/shared/components/ol/ol-button'
|
||||||
import OLModal, {
|
import {
|
||||||
|
OLModal,
|
||||||
OLModalBody,
|
OLModalBody,
|
||||||
OLModalFooter,
|
OLModalFooter,
|
||||||
OLModalHeader,
|
OLModalHeader,
|
||||||
@@ -100,7 +101,7 @@ function TemplateActionModal({
|
|||||||
backdrop="static"
|
backdrop="static"
|
||||||
>
|
>
|
||||||
<div ref={modalRef}>
|
<div ref={modalRef}>
|
||||||
<OLModalHeader closeButton>
|
<OLModalHeader>
|
||||||
<OLModalTitle>{title}</OLModalTitle>
|
<OLModalTitle>{title}</OLModalTitle>
|
||||||
</OLModalHeader>
|
</OLModalHeader>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user