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