mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user