From 8741a9d0c2e287cdbdad533edd4b0e6177d2d5ea Mon Sep 17 00:00:00 2001 From: Tomas Kikutis Date: Mon, 28 Oct 2024 12:55:12 +0100 Subject: [PATCH] avoid circular import --- client/utils/confirmAddingRelatedItems.tsx | 42 ++++++++++++---------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/client/utils/confirmAddingRelatedItems.tsx b/client/utils/confirmAddingRelatedItems.tsx index 3a0bbdadb..162dd004b 100644 --- a/client/utils/confirmAddingRelatedItems.tsx +++ b/client/utils/confirmAddingRelatedItems.tsx @@ -1,7 +1,6 @@ import * as React from 'react'; import {Spacer, Modal, Button} from 'superdesk-ui-framework/react'; import {superdeskApi} from '../superdeskApi'; -import {ConfirmationModal} from '../components'; export function confirmAddingRelatedItems( warnings: Array, @@ -51,30 +50,35 @@ export function confirmAddingRelatedItems( ); } else { return ( - = 2 - // thus gettextPlural doesn't need to be used - title: gettext( + { - options.closeModal(); + ) + } + footerTemplate={( + +