mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
Update src/components/content/courses/CourseLesson.js
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
ed41f9a170
commit
080ab4a4b5
@ -89,17 +89,6 @@ const CourseLesson = ({ lesson, course, decryptionPerformed, isPaid, setComplete
|
|||||||
];
|
];
|
||||||
|
|
||||||
// Add additional links to menu items if they exist
|
// Add additional links to menu items if they exist
|
||||||
if (lesson?.additionalLinks && lesson.additionalLinks.length > 0) {
|
|
||||||
lesson.additionalLinks.forEach((link, index) => {
|
|
||||||
menuItems.push({
|
|
||||||
label: `Link: ${new URL(link).hostname}`,
|
|
||||||
icon: 'pi pi-external-link',
|
|
||||||
command: () => {
|
|
||||||
window.open(link, '_blank');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!zaps || zapsLoading || zapsError) return;
|
if (!zaps || zapsLoading || zapsError) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user