Skip to content

Commit 6dd4e87

Browse files
committed
Update
1 parent ec7c431 commit 6dd4e87

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

src/components/AppxVideoPlayer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ export const AppxVideoPlayer = ({
3939

4040
return <iframe src={url} className="h-[80vh] w-[80vw] rounded-lg"></iframe>;
4141
};
42+

src/components/CourseView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const CourseView = ({
3737
const contentType = courseContent?.folder
3838
? 'folder'
3939
: courseContent?.value.type;
40+
4041
return (
4142
<div className="flex w-full flex-col gap-8 pb-16 pt-8 xl:pt-[9px] relative">
4243
<div className="flex flex-col gap-4 xl:pt-2 sticky z-10 top-[120px] py-2 bg-background">
@@ -53,7 +54,7 @@ export const CourseView = ({
5354
<NotionRenderer id={courseContent?.value?.id?.toString()} />
5455
) : null}
5556

56-
{!courseContent?.folder && contentType === 'video' ? (
57+
{!courseContent?.folder && (contentType === 'video' || contentType === 'appx') ? (
5758
<ContentRenderer
5859
nextContent={nextContent}
5960
content={{

src/components/admin/ContentRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export const ContentRenderer = async ({
136136
title: string;
137137
} | null;
138138
content: {
139-
type: 'video';
139+
type: 'video' | 'appx';
140140
id: number;
141141
title: string;
142142
description: string;

src/components/admin/ContentRendererClient.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const ContentRendererClient = ({
1919
} | null;
2020
metadata: any;
2121
content: {
22-
type: 'video';
22+
type: 'video' | 'appx';
2323
id: number;
2424
title: string;
2525
thumbnail: string;

0 commit comments

Comments
 (0)