add className prop to QuizAnswerer container
This commit is contained in:
parent
56be4ff736
commit
9a8df75a69
@ -27,9 +27,10 @@ type Props = {
|
|||||||
quizId: string;
|
quizId: string;
|
||||||
preview?: boolean;
|
preview?: boolean;
|
||||||
changeFaviconAndTitle?: boolean;
|
changeFaviconAndTitle?: boolean;
|
||||||
|
className?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function QuizAnswerer({ quizSettings, quizId, preview = false, changeFaviconAndTitle = true }: Props) {
|
export default function QuizAnswerer({ quizSettings, quizId, preview = false, changeFaviconAndTitle = true, className }: Props) {
|
||||||
const [quizViewStore] = useState(createQuizViewStore);
|
const [quizViewStore] = useState(createQuizViewStore);
|
||||||
const [rootContainerWidth, setRootContainerWidth] = useState<number>(() => window.innerWidth);
|
const [rootContainerWidth, setRootContainerWidth] = useState<number>(() => window.innerWidth);
|
||||||
const rootContainerRef = useRef<HTMLDivElement>(null);
|
const rootContainerRef = useRef<HTMLDivElement>(null);
|
||||||
@ -96,6 +97,7 @@ export default function QuizAnswerer({ quizSettings, quizId, preview = false, ch
|
|||||||
<CssBaseline />
|
<CssBaseline />
|
||||||
<Box
|
<Box
|
||||||
ref={rootContainerRef}
|
ref={rootContainerRef}
|
||||||
|
className={className}
|
||||||
sx={{
|
sx={{
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "100%",
|
height: "100%",
|
||||||
|
Loading…
Reference in New Issue
Block a user