@@ -6,7 +6,6 @@ import { closeEmbedModal, closeViperEditModal, hidePreview } from "../actions";
66import CitationModal from "../templates/modals/CitationModal" ;
77import CitePaperModal from "../templates/modals/CitePaperModal" ;
88import EmbedModal from "../templates/modals/EmbedModal" ;
9- import ImageModal from "../templates/modals/ImageModal" ;
109import InfoModal from "../templates/modals/InfoModal" ;
1110import PdfModal from "../templates/modals/PdfModal" ;
1211import ViperEditModal from "../templates/modals/ViperEditModal" ;
@@ -22,7 +21,6 @@ const Modals = ({
2221 viperEditTitle,
2322 viperEditObjID,
2423 onViperEditClose,
25- showImagePreview,
2624 showPDFPreview,
2725 previewedPaper,
2826 serverUrl,
@@ -47,13 +45,6 @@ const Modals = ({
4745 />
4846 ) }
4947 < InfoModal />
50- { showImagePreview && (
51- < ImageModal
52- open = { ! ! previewedPaper }
53- onClose = { onPreviewClose }
54- paperID = { previewedPaper ? previewedPaper . id : null }
55- />
56- ) }
5748 { showPDFPreview && (
5849 < PdfModal
5950 open = { ! ! previewedPaper }
@@ -78,7 +69,6 @@ const mapStateToProps = (state) => ({
7869 viperEditAcronym : state . heading . acronym ,
7970 viperEditTitle : state . heading . title ,
8071 viperEditObjID : state . modals . viperEditObjID ,
81- showImagePreview : state . modals . showImagePreview ,
8272 showPDFPreview : state . modals . showPDFPreview ,
8373 previewedPaper : state . modals . previewedPaper ,
8474 serverUrl : state . modals . reloadApiProperties . headstartPath ,
0 commit comments