diff --git a/src/Components/FormCreation/CreateEditMultipleChoice.js b/src/Components/FormCreation/CreateEditMultipleChoice.js index 46ea0b76..dae11643 100644 --- a/src/Components/FormCreation/CreateEditMultipleChoice.js +++ b/src/Components/FormCreation/CreateEditMultipleChoice.js @@ -14,7 +14,7 @@ const useStyles = makeStyles({ closeRoot: { display: "inline-block", position: "absolute", - left: "776px", + left: "676px", bottom: "2px" }, droppableSection: { @@ -52,7 +52,7 @@ const OptionWrapper = styled.div` const OptionNameInput = styled(InputBase)` && { - width: 716px; + width: 616px; display: inline-block; line-height: 21px; overflow-y: auto; diff --git a/src/Components/FormCreation/FormCard.js b/src/Components/FormCreation/FormCard.js index 45d787a9..c6b47327 100644 --- a/src/Components/FormCreation/FormCard.js +++ b/src/Components/FormCreation/FormCard.js @@ -9,6 +9,9 @@ import FileCopyOutlinedIcon from "@material-ui/icons/FileCopyOutlined"; import SettingsOutlinedIcon from "@material-ui/icons/SettingsOutlined"; import { Switch } from "@material-ui/core"; import FormControlLabel from "@material-ui/core/FormControlLabel"; +import CreateEditMultipleChoice from "./CreateEditMultipleChoice"; +import CreateEditShortAnswer from "./CreateEditShortAnswer"; +import CreateEditParagraph from "./CreateEditParagraph"; const useStyles = makeStyles({ collapse: { @@ -99,7 +102,16 @@ function FormCard({ > - todo + {card && card.type === "MULTIPLE_CHOICE" ? ( + + ) : null} + {card && card.type === "SHORT_ANSWER" ? ( + + ) : null} + {card && card.type === "PARAGRAPHS" ? : null} + {card && card.type === "CHECKBOXES" ?
todo
: null} + {card && card.type === "FILE_UPLOAD" ?
todo
: null} + {card && card.type === "CHECKBOX_GRID" ?
todo
: null}
diff --git a/src/Components/FormCreation/FormSection.js b/src/Components/FormCreation/FormSection.js index 79b53056..efd3dd29 100644 --- a/src/Components/FormCreation/FormSection.js +++ b/src/Components/FormCreation/FormSection.js @@ -164,6 +164,7 @@ function FormSection({ {sectionData.questions.map((_question, questionKey) => (