diff --git a/assets/js/src/common/form/react_select/react_select.tsx b/assets/js/src/common/form/react_select/react_select.tsx index 518ade4f1c..12a6d47e52 100644 --- a/assets/js/src/common/form/react_select/react_select.tsx +++ b/assets/js/src/common/form/react_select/react_select.tsx @@ -8,6 +8,54 @@ type Props = ReactSelectProps & { iconStart?: JSX.Element, }; +const LabelRenderer = (data: any) => ( +
+ {data.tag && {data.tag}} + {data.label} + {data.count && {data.count}} +
+); + +const Option = (props: any) => ( +
+ {LabelRenderer(props.data)} +
+); + +const SingleValue = (props: any) => ( +
+ {LabelRenderer(props.data)} +
+); + +const MultiValueLabel = (props: any) => ( +
+ {LabelRenderer(props.data)} +
+); + const ReactSelect = ({ dimension, isFullWidth, @@ -30,6 +78,7 @@ const ReactSelect = ({