- YoutubeEmbedIframe update
This commit is contained in:
parent
a448ddfffa
commit
e34de497ce
@ -3,6 +3,7 @@ import { Box, Typography } from "@mui/material";
|
|||||||
import { useQuizViewStore, updateAnswer } from "@root/quizView";
|
import { useQuizViewStore, updateAnswer } from "@root/quizView";
|
||||||
|
|
||||||
import type { QuizQuestionPage } from "../../../model/questionTypes/page";
|
import type { QuizQuestionPage } from "../../../model/questionTypes/page";
|
||||||
|
import YoutubeEmbedIframe from "@ui_kit/StartPagePreview/YoutubeEmbedIframe";
|
||||||
|
|
||||||
type PageProps = {
|
type PageProps = {
|
||||||
currentQuestion: QuizQuestionPage;
|
currentQuestion: QuizQuestionPage;
|
||||||
@ -42,15 +43,9 @@ export const Page = ({ currentQuestion }: PageProps) => {
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
) : (
|
) : (
|
||||||
<video
|
<YoutubeEmbedIframe
|
||||||
src={currentQuestion.content.video}
|
containerSX={{ width: "100%", height: "100%", maxHeight: "80vh", objectFit: "contain" }}
|
||||||
controls
|
videoUrl={currentQuestion.content.video}
|
||||||
style={{
|
|
||||||
width: "100%",
|
|
||||||
height: "100%",
|
|
||||||
maxHeight: "80vh",
|
|
||||||
objectFit: "contain",
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user