From ef416c91a639f35f578531056422c894e5afceb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Tue, 15 Oct 2024 16:21:50 -0300 Subject: [PATCH] fix: issues from merge --- src/content-tags-drawer/ContentTagsDrawer.tsx | 12 +++++------ .../ContentTagsDrawerSheet.jsx | 4 ++-- src/library-authoring/common/context.tsx | 1 + .../ComponentManagement.test.tsx | 21 +++++++++---------- .../library-team/LibraryTeam.test.tsx | 2 +- 5 files changed, 19 insertions(+), 21 deletions(-) diff --git a/src/content-tags-drawer/ContentTagsDrawer.tsx b/src/content-tags-drawer/ContentTagsDrawer.tsx index c072d6c8d9..4f225666fd 100644 --- a/src/content-tags-drawer/ContentTagsDrawer.tsx +++ b/src/content-tags-drawer/ContentTagsDrawer.tsx @@ -100,10 +100,10 @@ const ContentTagsDrawerTitle = () => { interface ContentTagsDrawerVariantFooterProps { onClose: () => void, - canTagObject: boolean, + readOnly: boolean, } -const ContentTagsDrawerVariantFooter = ({ onClose, canTagObject }: ContentTagsDrawerVariantFooterProps) => { +const ContentTagsDrawerVariantFooter = ({ onClose, readOnly }: ContentTagsDrawerVariantFooterProps) => { const intl = useIntl(); const { commitGlobalStagedTagsStatus, @@ -131,7 +131,7 @@ const ContentTagsDrawerVariantFooter = ({ onClose, canTagObject }: ContentTagsDr ? messages.tagsDrawerCancelButtonText : messages.tagsDrawerCloseButtonText)} - {canTagObject && ( + {!readOnly && (