From 1a96ca32f99c41876f110a5078373c966388f5c8 Mon Sep 17 00:00:00 2001 From: Matthew Jacobs Date: Wed, 24 Apr 2024 00:56:00 +0000 Subject: [PATCH] add link actions to readable view --- .../LinkViews/LinkComponents/LinkActions.tsx | 12 ++++++++--- components/ReadableView.tsx | 21 +++++++++++++++++-- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/components/LinkViews/LinkComponents/LinkActions.tsx b/components/LinkViews/LinkComponents/LinkActions.tsx index d809dfc..fcd4750 100644 --- a/components/LinkViews/LinkComponents/LinkActions.tsx +++ b/components/LinkViews/LinkComponents/LinkActions.tsx @@ -18,6 +18,7 @@ type Props = { position?: string; toggleShowInfo?: () => void; linkInfo?: boolean; + alignToTop?: boolean; flipDropdown?: boolean; }; @@ -26,6 +27,7 @@ export default function LinkActions({ toggleShowInfo, position, linkInfo, + alignToTop, flipDropdown, }: Props) { const permissions = usePermissions(link.collection.id as number); @@ -67,9 +69,9 @@ export default function LinkActions({ return ( <>
-
    +
    • { + return collections.find( + (e) => e.id === link.collection.id + ) as CollectionIncludingMembersAndLinkCount; + }, [collections, link]); useEffect(() => { const fetchLinkContent = async () => { @@ -131,7 +141,7 @@ export default function ReadableView({ link }: Props) {
      + +