reorganize files
This commit is contained in:
parent
679a7b6034
commit
b486b2baa4
@ -8,7 +8,7 @@ import {
|
|||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import { useCurrentQuiz } from "@root/quizes/hooks";
|
import { useCurrentQuiz } from "@root/quizes/hooks";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import InBodyInstall from "../InBodyInstall";
|
import ContainerWidgetSetup from "./WidgetSetupByType/ContainerWidgetSetup";
|
||||||
import InstallationStepButton from "./InstallationStepButton";
|
import InstallationStepButton from "./InstallationStepButton";
|
||||||
import WidgetTypeButton from "./WidgetTypeButton";
|
import WidgetTypeButton from "./WidgetTypeButton";
|
||||||
import BannerWidgetPreview from "./previewIcons/BannerWidgetPreview";
|
import BannerWidgetPreview from "./previewIcons/BannerWidgetPreview";
|
||||||
@ -183,7 +183,7 @@ export default function QuizInstallationCard() {
|
|||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
{widgetSetupSettings.widgetType === "container" && (
|
{widgetSetupSettings.widgetType === "container" && (
|
||||||
<InBodyInstall
|
<ContainerWidgetSetup
|
||||||
step={widgetSetupSettings.step}
|
step={widgetSetupSettings.step}
|
||||||
nextButton={nextButton}
|
nextButton={nextButton}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -13,16 +13,16 @@ import CustomCheckbox from "@ui_kit/CustomCheckbox";
|
|||||||
import PenaTextField from "@ui_kit/PenaTextField";
|
import PenaTextField from "@ui_kit/PenaTextField";
|
||||||
import { nanoid } from "nanoid";
|
import { nanoid } from "nanoid";
|
||||||
import { ReactNode, useState } from "react";
|
import { ReactNode, useState } from "react";
|
||||||
import Dots from "../../assets/dots.png";
|
import Dots from "../../../../assets/dots.png";
|
||||||
import WidgetScript from "./QuizInstallationCard/WidgetScript";
|
import WidgetScript from "../WidgetScript";
|
||||||
import { createContainerWidgetScriptText } from "./QuizInstallationCard/createWidgetScriptText";
|
import { createContainerWidgetScriptText } from "../createWidgetScriptText";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
step: 2 | 3;
|
step: 2 | 3;
|
||||||
nextButton: ReactNode;
|
nextButton: ReactNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function InBodyInstall({ step, nextButton }: Props) {
|
export default function ContainerWidgetSetup({ step, nextButton }: Props) {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const isSmallMonitor = useMediaQuery(theme.breakpoints.down(1065));
|
const isSmallMonitor = useMediaQuery(theme.breakpoints.down(1065));
|
||||||
const quiz = useCurrentQuiz();
|
const quiz = useCurrentQuiz();
|
||||||
Loading…
Reference in New Issue
Block a user