diff --git a/packages/web/components/elements/LabelChip.tsx b/packages/web/components/elements/LabelChip.tsx index b368825e9..64a43af06 100644 --- a/packages/web/components/elements/LabelChip.tsx +++ b/packages/web/components/elements/LabelChip.tsx @@ -1,3 +1,5 @@ +import Link from 'next/link' +import { SpanBox } from './LayoutPrimitives' import { StyledText } from './StyledText' type LabelChipProps = { @@ -16,19 +18,24 @@ export function LabelChip(props: LabelChipProps): JSX.Element { } const color = hexToRgb(props.color) return ( - - {props.text} - + + + {props.text} + + ) } diff --git a/packages/web/components/templates/article/ArticleActionsMenu.tsx b/packages/web/components/templates/article/ArticleActionsMenu.tsx index 13f1f221d..1a8762f84 100644 --- a/packages/web/components/templates/article/ArticleActionsMenu.tsx +++ b/packages/web/components/templates/article/ArticleActionsMenu.tsx @@ -1,8 +1,7 @@ import { Separator } from "@radix-ui/react-separator" import { ArchiveBox, DotsThree, HighlighterCircle, TagSimple, TextAa } from "phosphor-react" -import { useRef } from "react" import { ArticleAttributes } from "../../../lib/networking/queries/useGetArticleQuery" -import { useGetUserPreferences, UserPreferences } from "../../../lib/networking/queries/useGetUserPreferences" +import { useGetUserPreferences } from "../../../lib/networking/queries/useGetUserPreferences" import { Button } from "../../elements/Button" import { Dropdown } from "../../elements/DropdownElements" import { Box, SpanBox } from "../../elements/LayoutPrimitives" @@ -15,7 +14,7 @@ export type ArticleActionsMenuLayout = 'horizontal' | 'vertical' type ArticleActionsMenuProps = { article: ArticleAttributes layout: ArticleActionsMenuLayout - articleActionHandler: (action: string, arg?: number) => void + articleActionHandler: (action: string, arg?: unknown) => void } type MenuSeparatorProps = { @@ -91,7 +90,10 @@ export function ArticleActionsMenu(props: ArticleActionsMenuProps): JSX.Element } > - + {/*