File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed
Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff 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+
Original file line number Diff line number Diff 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 = { {
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments