Merge pull request #3731 from continuedev/dallin/docs-icon
fix missing docs subaction item
This commit is contained in:
commit
6c3bbd5628
1 changed files with 5 additions and 1 deletions
|
|
@ -81,6 +81,7 @@ const ICONS_FOR_DROPDOWN: { [key: string]: any } = {
|
|||
google: GoogleIcon,
|
||||
"gitlab-mr": GitlabIcon,
|
||||
http: GlobeAltIcon,
|
||||
trash: TrashIcon,
|
||||
};
|
||||
|
||||
export function getIconFromDropdownItem(
|
||||
|
|
@ -451,7 +452,10 @@ const MentionList = forwardRef((props: MentionListProps, ref) => {
|
|||
/>
|
||||
)}
|
||||
{item.subActions?.map((subAction) => {
|
||||
const Icon = ICONS_FOR_DROPDOWN[subAction.icon];
|
||||
const Icon = getIconFromDropdownItem(
|
||||
subAction.icon,
|
||||
"action",
|
||||
);
|
||||
return (
|
||||
<HeaderButtonWithToolTip
|
||||
onClick={(e) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue