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>
<div className="tile-tags"> <div className="tile-tags">
{tags.length ? ( {tags.length ? (
<Tags columnCount={2} tags={tags} onSelectTag={() => {}} /> <Tags columnCount={2} tags={tags} />
) : ( ) : (
<Tag <Tag
className="type_tag" className="type_tag"
tag="script" tag="script"
label={defaultTagLabel} label={defaultTagLabel}
isDefault isDefault
onClick={() => {}}
/> />
)} )}
</div> </div>

View File

@ -53,5 +53,5 @@ export interface TagsProps {
/** Accepts css style */ /** Accepts css style */
style?: React.CSSProperties; style?: React.CSSProperties;
/** Accepts the function that is called when the tag is selected */ /** Accepts the function that is called when the tag is selected */
onSelectTag: (tag?: object) => void; onSelectTag?: (tag?: object) => void;
} }