Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Nov 28, 2024
1 parent ec7c431 commit 6dd4e87
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/AppxVideoPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@ export const AppxVideoPlayer = ({

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

3 changes: 2 additions & 1 deletion src/components/CourseView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const CourseView = ({
const contentType = courseContent?.folder
? 'folder'
: courseContent?.value.type;

return (
<div className="flex w-full flex-col gap-8 pb-16 pt-8 xl:pt-[9px] relative">
<div className="flex flex-col gap-4 xl:pt-2 sticky z-10 top-[120px] py-2 bg-background">
Expand All @@ -53,7 +54,7 @@ export const CourseView = ({
<NotionRenderer id={courseContent?.value?.id?.toString()} />
) : null}

{!courseContent?.folder && contentType === 'video' ? (
{!courseContent?.folder && (contentType === 'video' || contentType === 'appx') ? (
<ContentRenderer
nextContent={nextContent}
content={{
Expand Down
2 changes: 1 addition & 1 deletion src/components/admin/ContentRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const ContentRenderer = async ({
title: string;
} | null;
content: {
type: 'video';
type: 'video' | 'appx';
id: number;
title: string;
description: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/admin/ContentRendererClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ContentRendererClient = ({
} | null;
metadata: any;
content: {
type: 'video';
type: 'video' | 'appx';
id: number;
title: string;
thumbnail: string;
Expand Down

0 comments on commit 6dd4e87

Please sign in to comment.