From 2007d6063bad1a7a0d2b5a522661b3a0efa4de3f Mon Sep 17 00:00:00 2001 From: Viktor Fomin Date: Thu, 27 Jun 2024 13:40:45 +0300 Subject: [PATCH] Fix Bug 68369 Clickable tag button on the edit panel --- packages/shared/components/image-editor/PreviewTile/index.tsx | 3 +-- packages/shared/components/tags/Tags.types.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/shared/components/image-editor/PreviewTile/index.tsx b/packages/shared/components/image-editor/PreviewTile/index.tsx index b10d0ae049..a46e250ccb 100644 --- a/packages/shared/components/image-editor/PreviewTile/index.tsx +++ b/packages/shared/components/image-editor/PreviewTile/index.tsx @@ -49,14 +49,13 @@ const PreviewTile = ({
{tags.length ? ( - {}} /> + ) : ( {}} /> )}
diff --git a/packages/shared/components/tags/Tags.types.ts b/packages/shared/components/tags/Tags.types.ts index 5f2740800c..25e30c2486 100644 --- a/packages/shared/components/tags/Tags.types.ts +++ b/packages/shared/components/tags/Tags.types.ts @@ -53,5 +53,5 @@ export interface TagsProps { /** Accepts css style */ style?: React.CSSProperties; /** Accepts the function that is called when the tag is selected */ - onSelectTag: (tag?: object) => void; + onSelectTag?: (tag?: object) => void; }