Break line on added links

This commit is contained in:
austinkelsay 2024-10-16 19:46:59 -05:00
parent 97fa99aa3b
commit 0a39f4f1c3
3 changed files with 14 additions and 6 deletions

View File

@ -39,6 +39,8 @@ export function CourseTemplate({ course }) {
}
}, [course]);
console.log(nip19.decode("naddr1qvzqqqr4gupzpueu32tp0jc47uzlcuxdgcw06m40ytu7ynpna2adnqty3e0vda6pqpqryvrxxyun2vnrxasngvt98q6rycfs8ycrvvpjx5mrjdpkvs6ryef38qmngcnpv4jkyd3nxcmxvvpkvgmrydpcxqmxxdfhvsckxctpvs42mx08"))
useEffect(() => {
if (course && course?.id) {
const nAddress = nip19.naddrEncode({

View File

@ -151,9 +151,12 @@ const DocumentDetails = ({ processedEvent, topics, title, summary, image, price,
<div className="my-4">
<p>Additional Links:</p>
{processedEvent.additionalLinks.map((link, index) => (
<a className="text-blue-500 hover:underline hover:text-blue-600" key={index} href={link} target="_blank" rel="noopener noreferrer">
{link}
</a>
<React.Fragment key={index}>
<a className="text-blue-500 hover:underline hover:text-blue-600" href={link} target="_blank" rel="noopener noreferrer">
{link}
</a>
<br />
</React.Fragment>
))}
</div>
)}

View File

@ -158,9 +158,12 @@ const VideoDetails = ({ processedEvent, topics, title, summary, image, price, au
<div className="my-4">
<p>Additional Links:</p>
{processedEvent.additionalLinks.map((link, index) => (
<a className="text-blue-500 hover:underline hover:text-blue-600" key={index} href={link} target="_blank" rel="noopener noreferrer">
{link}
</a>
<React.Fragment key={index}>
<a className="text-blue-500 hover:underline hover:text-blue-600" href={link} target="_blank" rel="noopener noreferrer">
{link}
</a>
<br />
</React.Fragment>
))}
</div>
)}