diff --git a/client/components/dropdown/dropdown.jsx b/client/components/dropdown/dropdown.jsx index 283ed3172..32587c60e 100644 --- a/client/components/dropdown/dropdown.jsx +++ b/client/components/dropdown/dropdown.jsx @@ -64,10 +64,10 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, c // the trigger is the piece placed inside the opening button of the menu. // This method allows for creating a generic span with the group name, // or using a bespoke element (like a graphic) passed in from props to be used as the trigger - const trigger = (groupName)=>{ + const trigger = (groupName, icon)=>{ if(!customTrigger){ return <> - {groupName} + {groupName} ; } else { return customTrigger; @@ -104,7 +104,7 @@ const Dropdown = ({ groupName, className = null, icon, children, color = null, c disabled={!React.Children.count(children)} ref={triggerRef} > - {trigger(groupName)} + {trigger(groupName, icon)}