mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-22 16:51:34 +00:00
Break line on added links
This commit is contained in:
parent
97fa99aa3b
commit
0a39f4f1c3
@ -39,6 +39,8 @@ export function CourseTemplate({ course }) {
|
||||
}
|
||||
}, [course]);
|
||||
|
||||
console.log(nip19.decode("naddr1qvzqqqr4gupzpueu32tp0jc47uzlcuxdgcw06m40ytu7ynpna2adnqty3e0vda6pqpqryvrxxyun2vnrxasngvt98q6rycfs8ycrvvpjx5mrjdpkvs6ryef38qmngcnpv4jkyd3nxcmxvvpkvgmrydpcxqmxxdfhvsckxctpvs42mx08"))
|
||||
|
||||
useEffect(() => {
|
||||
if (course && course?.id) {
|
||||
const nAddress = nip19.naddrEncode({
|
||||
|
@ -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>
|
||||
)}
|
||||
|
@ -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>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user