Add Icons to tags if they have parent/child tags (#3931)

* Add Icons to tags if they have parent/child tags
* Refactor TagLink
---------
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
elkorol
2023-09-20 05:08:00 +01:00
committed by GitHub
parent 36e9ed7a6c
commit 636b0a3167
27 changed files with 421 additions and 137 deletions

View File

@@ -767,12 +767,12 @@ export const TagSelect: React.FC<
};
}
const id = (optionProps.data as Option & { __isNew__: boolean }).__isNew__
? ""
: optionProps.data.value;
const id = optionProps.data.value;
const hide = (optionProps.data as Option & { __isNew__: boolean })
.__isNew__;
return (
<TagPopover id={id} placement={props.hoverPlacement}>
<TagPopover id={id} hide={hide} placement={props.hoverPlacement}>
<reactSelectComponents.Option {...thisOptionProps} />
</TagPopover>
);