diff --git a/components/LinkViews/LinkComponents/LinkActions.tsx b/components/LinkViews/LinkComponents/LinkActions.tsx index d230373..2cd0b48 100644 --- a/components/LinkViews/LinkComponents/LinkActions.tsx +++ b/components/LinkViews/LinkComponents/LinkActions.tsx @@ -15,8 +15,8 @@ type Props = { link: LinkIncludingShortenedCollectionAndTags; collection: CollectionIncludingMembersAndLinkCount; position?: string; - toggleShowInfo: () => void; - linkInfo: boolean; + toggleShowInfo?: () => void; + linkInfo?: boolean; }; export default function LinkActions({ @@ -92,18 +92,20 @@ export default function LinkActions({ ) : undefined} -
  • -
    { - (document?.activeElement as HTMLElement)?.blur(); - toggleShowInfo(); - }} - > - {!linkInfo ? "Show" : "Hide"} Link Details -
    -
  • + {linkInfo !== undefined && toggleShowInfo ? ( +
  • +
    { + (document?.activeElement as HTMLElement)?.blur(); + toggleShowInfo(); + }} + > + {!linkInfo ? "Show" : "Hide"} Link Details +
    +
  • + ) : undefined} {permissions === true || permissions?.canUpdate ? (
  • setShowInfo(!showInfo)} - linkInfo={showInfo} + // toggleShowInfo={() => setShowInfo(!showInfo)} + // linkInfo={showInfo} /> {showInfo ? (