Skip to content

Commit

Permalink
feat: Add tags to internal portals also
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Nov 22, 2024
1 parent 10b5901 commit af8082e
Showing 1 changed file with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,22 @@ const InternalPortal: React.FC<any> = (props) => {
return (
<>
<Hanger hidden={isDragging} before={props.id} parent={parent} />
<li className={classNames("card", "portal", { isDragging })} ref={ref}>
<Link
href={href}
prefetch={false}
ref={drag}
onContextMenu={handleContext}
>
{Icon && <Icon />}
<span>{props.data.text}</span>
</Link>
<Link href={editHref} prefetch={false} className="portalMenu">
<MoreVert titleAccess="Edit Portal" />
</Link>
<li ref={ref}>
<Box className={classNames("card", "portal", { isDragging })}>
<Link
href={href}
prefetch={false}
ref={drag}
onContextMenu={handleContext}
>
{Icon && <Icon />}
<span>{props.data.text}</span>
</Link>
<Link href={editHref} prefetch={false} className="portalMenu">
<MoreVert titleAccess="Edit Portal" />
</Link>
</Box>
{props.tags?.map((tag: NodeTag) => <Tag tag={tag} key={tag} />)}
</li>
</>
);
Expand Down

0 comments on commit af8082e

Please sign in to comment.