diff --git a/src/components/admin/CurriculumEditor.tsx b/src/components/admin/CurriculumEditor.tsx index bd954d4..cbcf585 100644 --- a/src/components/admin/CurriculumEditor.tsx +++ b/src/components/admin/CurriculumEditor.tsx @@ -194,6 +194,7 @@ export function CurriculumEditor({ productId }: CurriculumEditorProps) { mp4_url: '', video_host: 'youtube', release_at: '', + chapters: [], }); setLessonDialogOpen(true); }; diff --git a/src/index.css b/src/index.css index cb93e4a..4d55989 100644 --- a/src/index.css +++ b/src/index.css @@ -389,7 +389,7 @@ All colors MUST be HSL. border: 1px solid rgba(0, 0, 0, 0.1); } - .flex .flex-1 code { + .flex > .flex-1 > code { background-color: #dedede; } } \ No newline at end of file diff --git a/src/pages/ProductDetail.tsx b/src/pages/ProductDetail.tsx index 959ace6..ab0ac1d 100644 --- a/src/pages/ProductDetail.tsx +++ b/src/pages/ProductDetail.tsx @@ -467,7 +467,7 @@ export default function ProductDetail() { className={`flex items-start gap-2 py-1 px-2 text-xs text-muted-foreground rounded transition-colors cursor-not-allowed opacity-60${isLastTimelineItem(lesson.chapters.length, chapterIndex) ? ' border-b-2 border-[#dedede] rounded-none' : ''}`} title="Beli bootcamp untuk mengakses materi ini" > - + {formatChapterTime(chapter.time)}