Merge pull request #3731 from continuedev/dallin/docs-icon

fix missing docs subaction item
This commit is contained in:
Nate Sesti 2025-01-15 11:24:59 -08:00 • committed by GitHub
commit 6c3bbd5628
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) => {