Fix bootcamp and webinar action buttons
Bootcamp fixes: - Change "Sudah Selesai" to "Selesai" (shorter, cleaner) - Replace "Selanjutnya" button with "Beri Ulasan" when all lessons completed - Makes more sense than "Lanjutkan" when there's nothing to continue Webinar fixes: - Check if webinar has ended based on event_start date - Only show "Gabung Webinar" button if webinar hasn't ended AND has meeting link - Show "Rekaman segera tersedia" badge for passed webinars without recording - Only show recording player/video if recording_url exists 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -408,22 +408,29 @@ export default function Bootcamp() {
|
||||
{isLessonCompleted(selectedLesson.id) ? (
|
||||
<>
|
||||
<Check className="w-4 h-4 mr-2" />
|
||||
Sudah Selesai
|
||||
Selesai
|
||||
</>
|
||||
) : (
|
||||
'Tandai Selesai'
|
||||
)}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
variant="outline"
|
||||
onClick={goToNextLesson}
|
||||
disabled={modules.flatMap(m => m.lessons).findIndex(l => l.id === selectedLesson.id) === modules.flatMap(m => m.lessons).length - 1}
|
||||
className="border-2"
|
||||
>
|
||||
Selanjutnya
|
||||
<ChevronRight className="w-4 h-4 ml-2" />
|
||||
</Button>
|
||||
{isBootcampCompleted ? (
|
||||
<Button onClick={() => setReviewModalOpen(true)} className="shadow-sm">
|
||||
<Star className="w-4 h-4 mr-2" />
|
||||
Beri Ulasan
|
||||
</Button>
|
||||
) : (
|
||||
<Button
|
||||
variant="outline"
|
||||
onClick={goToNextLesson}
|
||||
disabled={modules.flatMap(m => m.lessons).findIndex(l => l.id === selectedLesson.id) === modules.flatMap(m => m.lessons).length - 1}
|
||||
className="border-2"
|
||||
>
|
||||
Selanjutnya
|
||||
<ChevronRight className="w-4 h-4 ml-2" />
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Bootcamp completion review prompt */}
|
||||
|
||||
Reference in New Issue
Block a user