Fix Bug 68369

Clickable tag button on the edit panel
This commit is contained in:
Viktor Fomin 2024-06-27 13:40:45 +03:00
parent 7c1a2ede51
commit 2007d6063b
2 changed files with 2 additions and 3 deletions

View File

@ -49,14 +49,13 @@ const PreviewTile = ({
</div>
<div className="tile-tags">
{tags.length ? (
<Tags columnCount={2} tags={tags} onSelectTag={() => {}} />
<Tags columnCount={2} tags={tags} />
) : (
<Tag
className="type_tag"
tag="script"
label={defaultTagLabel}
isDefault
onClick={() => {}}
/>
)}
</div>

View File

@ -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;
}