From d5298c61a5c97a10c1d8dd0ac41a0f6c5b8f2f45 Mon Sep 17 00:00:00 2001 From: Alen Date: Fri, 20 Sep 2024 12:21:01 +0400 Subject: [PATCH] mobile respo --- .../src/components/SelectMultiScalePoint.jsx | 7 +- .../src/components/SelectSingleCheckBox.jsx | 4 +- client/src/components/SelectSingleRadio.jsx | 5 +- client/src/pages/UserSubmitSurvey.jsx | 64 ++++++++++++++++++- 4 files changed, 73 insertions(+), 7 deletions(-) diff --git a/client/src/components/SelectMultiScalePoint.jsx b/client/src/components/SelectMultiScalePoint.jsx index 64c79ee..48dff63 100644 --- a/client/src/components/SelectMultiScalePoint.jsx +++ b/client/src/components/SelectMultiScalePoint.jsx @@ -117,7 +117,7 @@ const SelectMultiScalePoint = ({ onSaveForm, data, id, options, disableForm, dis return ( - + - - + */} ) } diff --git a/client/src/components/SelectSingleCheckBox.jsx b/client/src/components/SelectSingleCheckBox.jsx index af3a0d4..fbf8d81 100644 --- a/client/src/components/SelectSingleCheckBox.jsx +++ b/client/src/components/SelectSingleCheckBox.jsx @@ -140,6 +140,7 @@ const SelectSingleCheckBox = ({ onSaveForm, data, id, options, disableForm, disa fullWidth id="standard-basic" label={!disableText ? "Insert input" : ''} variant="standard" + multiline value={formData.question} onChange={(e) => setFormData({ ...formData, question: e.target.value })} InputProps={{ @@ -147,7 +148,7 @@ const SelectSingleCheckBox = ({ onSaveForm, data, id, options, disableForm, disa }} /> {formData.options.map((opt) => { @@ -176,6 +177,7 @@ const SelectSingleCheckBox = ({ onSaveForm, data, id, options, disableForm, disa id="standard-basic" placeholder={!disableText ? "Type Your Response Here" : ''} variant="standard" + multiline value={opt.value} onChange={(e) => setFormData({ diff --git a/client/src/components/SelectSingleRadio.jsx b/client/src/components/SelectSingleRadio.jsx index c0a4741..5f2153d 100644 --- a/client/src/components/SelectSingleRadio.jsx +++ b/client/src/components/SelectSingleRadio.jsx @@ -133,7 +133,7 @@ const SelectSingleRadio = ({ onSaveForm, data, id, options, disableForm, disable backgroundColor:'#F4FFF8', }, }}> - */} {formData.options.map((option) => ( @@ -176,6 +176,7 @@ const SelectSingleRadio = ({ onSaveForm, data, id, options, disableForm, disable > { const { surveyId } = useParams(); const navigate = useNavigate(); + const [openDrawer, setOpenDrawer] = React.useState(false); + + const toggleDrawer = (newOpen) => () => { + setOpenDrawer(newOpen); + }; + const [surveyData, setSurveyData] = React.useState({}); const [currentIndex, setCurrentIndex] = useState(0); const [introduction, setIntroduction] = useState(true) @@ -1200,7 +1210,7 @@ const UserSubmitSurvey = () => { {(surveyData.surveyForms && !introduction) && renderCurrentComponent()} - + Powered by @@ -1221,6 +1231,58 @@ const UserSubmitSurvey = () => { + + + + + Powered by + + + + + + + + + + + + + + + + + + + + + + + + +