diff --git a/package.json b/package.json index 1342aba..81cdf77 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "build:dev": "npx webpack --env mode=development", "build:prod": "npx webpack --env mode=production", - "start": "npx webpack-dev-server" + "start:dev": "npx webpack-dev-server --env mode=development", + "start:prod": "npx webpack-dev-server --env mode=production" }, "keywords": [], "author": "", diff --git a/public/index.html b/public/index.html index 03180da..9900d88 100644 --- a/public/index.html +++ b/public/index.html @@ -9,6 +9,7 @@
+ \ No newline at end of file diff --git a/src/assets/styles/components/myModal.module.scss b/src/assets/styles/components/answerModal.module.scss similarity index 74% rename from src/assets/styles/components/myModal.module.scss rename to src/assets/styles/components/answerModal.module.scss index c17db0f..09f25ba 100644 --- a/src/assets/styles/components/myModal.module.scss +++ b/src/assets/styles/components/answerModal.module.scss @@ -50,6 +50,31 @@ padding: 0 1%; } } + &__answerOptions { + margin-top: 5%; + &__title { + display: block; + font-size: 15px; + font-family: "Montserrat", sans-serif; + } + &__list{ + margin: 5px 0; + &__answer { + display: block; + margin-top: 4px; + font-size: 12px; + font-family: "Montserrat", sans-serif; + } + } + &__text { + display: block; + font-family: "Montserrat", sans-serif; + border: 1px solid rgb(200, 200, 200); + width: 100%; + padding: 0 1%; + margin-bottom: 10px; + } + } &__mandatory { margin-top: 5%; display: flex; diff --git a/src/assets/styles/components/previewModal.module.scss b/src/assets/styles/components/previewModal.module.scss new file mode 100644 index 0000000..a276bc4 --- /dev/null +++ b/src/assets/styles/components/previewModal.module.scss @@ -0,0 +1,20 @@ +.myModal { + &__dialog { + &__content { + // padding: 2%; + &__header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 2%; + h5 { + font-size: 17px; + } + i { + cursor: pointer; + font-size: 17px; + } + } + } + } +} \ No newline at end of file diff --git a/src/assets/styles/newForm.module.scss b/src/assets/styles/newForm.module.scss index a9c44df..2b1fa98 100644 --- a/src/assets/styles/newForm.module.scss +++ b/src/assets/styles/newForm.module.scss @@ -18,7 +18,7 @@ &__listBtn { display: flex; justify-content: space-between; - width: 20%; + width: 30%; } } diff --git a/src/components/MyModal.jsx b/src/components/AnswerModal.jsx similarity index 69% rename from src/components/MyModal.jsx rename to src/components/AnswerModal.jsx index 621dc05..4b77205 100644 --- a/src/components/MyModal.jsx +++ b/src/components/AnswerModal.jsx @@ -1,7 +1,8 @@ import React from "react"; -import classes from "../assets/styles/components/myModal.module.scss"; +import classes from "../assets/styles/components/answerModal.module.scss"; +import MyButton from "./MyButton.jsx" -const MyModal = ({ +const AnswerModal = ({ cleanStates, currentTypeAnswer, updateAnswerByForm, @@ -10,10 +11,15 @@ const MyModal = ({ answer, file, listTypeAnswer, + optionAnswer, + setOptionAnswer, + currentOptionAnswer, + setCurrentOptionAnswer, comment, datetime, mandatory, setMandatory, + addOptionAnswer, setAnswer, setComment, setDatetime, @@ -23,7 +29,7 @@ const MyModal = ({ return ( -