From ca872dd5116b251ffee62a25cb253175b549ab27 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Wed, 16 Oct 2024 16:54:12 -0500 Subject: [PATCH] Additional links --- .../content/documents/DocumentDetails.js | 13 ++++-- src/components/content/videos/VideoDetails.js | 46 ++++--------------- 2 files changed, 17 insertions(+), 42 deletions(-) diff --git a/src/components/content/documents/DocumentDetails.js b/src/components/content/documents/DocumentDetails.js index 6250257..26e558f 100644 --- a/src/components/content/documents/DocumentDetails.js +++ b/src/components/content/documents/DocumentDetails.js @@ -148,11 +148,14 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price,

{line}

))} {processedEvent?.additionalLinks && processedEvent?.additionalLinks.length > 0 && ( - processedEvent?.additionalLinks.map((link, index) => ( - - {link} - - )) + <> +

Additional Links:

+ {processedEvent.additionalLinks.map((link, index) => ( + + {link} + + ))} + )}
diff --git a/src/components/content/videos/VideoDetails.js b/src/components/content/videos/VideoDetails.js index 2660689..66a5c43 100644 --- a/src/components/content/videos/VideoDetails.js +++ b/src/components/content/videos/VideoDetails.js @@ -148,11 +148,14 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au

{line}

))} {processedEvent?.additionalLinks && processedEvent?.additionalLinks.length > 0 && ( - processedEvent?.additionalLinks.map((link, index) => ( - - {link} - - )) + <> +

Additional Links:

+ {processedEvent.additionalLinks.map((link, index) => ( + + {link} + + ))} + )}
-
-
-
- avatar image -

- Created by{' '} - - {author?.username} - -

-
- {authorView ? ( -
- router.push(`/details/${processedEvent.d}/edit`)} label="Edit" severity='warning' outlined /> - - window.open(`https://nostr.band/${nAddress}`, '_blank')} tooltip={isMobileView ? null : "View Nostr Event"} tooltipOptions={{ position: 'right' }} /> -
- ) : ( -
- {course && window.open(`/course/${course}`, '_blank')} label={isMobileView ? "Course" : "Open Course"} tooltip="This is a lesson in a course" tooltipOptions={{ position: 'top' }} />} - window.open(`https://nostr.band/${nAddress}`, '_blank')} tooltip={isMobileView ? null : "View Nostr Event"} tooltipOptions={{ position: paidResource ? 'left' : 'right' }} /> -
- )} -
-
{renderPaymentMessage()}
@@ -201,4 +173,4 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au ) } -export default VideoDetails; \ No newline at end of file +export default VideoDetails;