)}
diff --git a/src/features/surveys/features/SurveyCreator/components/QuestionsSection/QuestionsSection.tsx b/src/features/surveys/features/SurveyCreator/components/QuestionsSection/QuestionsSection.tsx
index 0072ce43..041aacc2 100644
--- a/src/features/surveys/features/SurveyCreator/components/QuestionsSection/QuestionsSection.tsx
+++ b/src/features/surveys/features/SurveyCreator/components/QuestionsSection/QuestionsSection.tsx
@@ -15,7 +15,7 @@ export default function QuestionsSection() {
useSurveyCreatorContext();
return (
-
+
{isEditMode && (
)}
diff --git a/src/features/surveys/features/SurveyCreator/components/TitleAndConfigSection/TitleAndConfigSection.tsx b/src/features/surveys/features/SurveyCreator/components/TitleAndConfigSection/TitleAndConfigSection.tsx
index 1b0f2766..67ce2799 100644
--- a/src/features/surveys/features/SurveyCreator/components/TitleAndConfigSection/TitleAndConfigSection.tsx
+++ b/src/features/surveys/features/SurveyCreator/components/TitleAndConfigSection/TitleAndConfigSection.tsx
@@ -4,8 +4,11 @@ import useModal from 'features/surveys/hooks/useModal';
import useTranslation from 'next-translate/useTranslation';
import React from 'react';
-import Button, { ButtonVariant } from 'shared/components/Button/Button';
-import Input from 'shared/components/Input/Input';
+import Button, {
+ ButtonSize,
+ ButtonVariant,
+} from 'shared/components/Button/Button';
+import Input, { InputSize } from 'shared/components/Input/Input';
import { MAX_TITLE_LENGTH } from 'shared/constants/surveysConfig';
import { useSurveyCreatorContext } from 'features/surveys/features/SurveyCreator/managers/createSurveyManager/context';
import { usePreviewPanelContext } from 'features/surveys/features/SurveyCreator/managers/previewPanelManager/context';
@@ -40,23 +43,25 @@ export default function TitleAndConfigSection() {
error={error}
maxLength={MAX_TITLE_LENGTH}
onChange={handleChangeTitle}
+ inputSize={InputSize.SMALL}
/>
}
data-test-id="options-button"
+ sizeType={ButtonSize.SMALL}
>
{t('options')}
diff --git a/src/features/surveys/features/SurveyCreator/managers/createSurveyManager/createSurveyManager.ts b/src/features/surveys/features/SurveyCreator/managers/createSurveyManager/createSurveyManager.ts
index c3439c07..6270c326 100644
--- a/src/features/surveys/features/SurveyCreator/managers/createSurveyManager/createSurveyManager.ts
+++ b/src/features/surveys/features/SurveyCreator/managers/createSurveyManager/createSurveyManager.ts
@@ -264,7 +264,10 @@ export const useCreateSurveyManager = (initialData?: SurveyWithQuestions) => {
if (
question.logicPaths?.some(
(path) =>
- !path.selectedOption || !path.comparisonType || !path.nextQuestionId
+ (path.comparisonType !== ComparisonType.SUBMITTED &&
+ !path.selectedOption) ||
+ !path.comparisonType ||
+ !path.nextQuestionId
)
) {
questionIndexesToExpand.push(index);
diff --git a/src/features/surveys/features/SurveyCreator/managers/previewPanelManager/previewPanelManager.ts b/src/features/surveys/features/SurveyCreator/managers/previewPanelManager/previewPanelManager.ts
index 1a863eb9..24a63502 100644
--- a/src/features/surveys/features/SurveyCreator/managers/previewPanelManager/previewPanelManager.ts
+++ b/src/features/surveys/features/SurveyCreator/managers/previewPanelManager/previewPanelManager.ts
@@ -1,13 +1,13 @@
-import { useEffect, useState } from 'react';
+import { useState } from 'react';
export const usePreviewPanelManager = () => {
const [isPanelOpened, setIsPanelOpened] = useState(false);
- useEffect(() => {
- if (window.innerWidth > 1280) {
- setIsPanelOpened(true);
- }
- }, []);
+ // useEffect(() => {
+ // if (window.innerWidth > 1280) {
+ // setIsPanelOpened(true);
+ // }
+ // }, []);
const togglePanel = () => {
setIsPanelOpened((prev) => !prev);
diff --git a/src/features/surveys/features/SurveyDisplay/SurveyDisplayContent.tsx b/src/features/surveys/features/SurveyDisplay/SurveyDisplayContent.tsx
index 1d74ac0e..46e514c1 100644
--- a/src/features/surveys/features/SurveyDisplay/SurveyDisplayContent.tsx
+++ b/src/features/surveys/features/SurveyDisplay/SurveyDisplayContent.tsx
@@ -5,6 +5,8 @@ import AllQuestionsView from 'features/surveys/features/SurveyDisplay/components
import SurveyNoActive from 'features/surveys/features/SurveyDisplay/components/SurveyNoActive/SurveyNoActive';
import ThankYou from 'features/surveys/features/SurveyDisplay/components/ThankYou';
import clsx from 'clsx';
+import NoSurveys from '/public/images/no-surveys.svg';
+import Image from 'next/image';
export default function SurveyDisplayContent() {
const { formData, isSurveyFinished, previewMode } = useSurveyDisplayContext();
@@ -16,11 +18,25 @@ export default function SurveyDisplayContent() {
) : formData?.isActive ? (
- formData.oneQuestionPerStep ? (
-
- ) : (
-
- )
+ <>
+ {formData.oneQuestionPerStep ? (
+
+ ) : (
+
+ )}
+
+ {formData.questions.length === 0 && (
+ <>
+
+
There are no questions in this survey
+ >
+ )}
+ >
) : (
)}
diff --git a/src/features/surveys/features/SurveyDisplay/components/AnswersComponent/AnswersComponentFactory.tsx b/src/features/surveys/features/SurveyDisplay/components/AnswersComponent/AnswersComponentFactory.tsx
index b35f925e..4dcf595e 100644
--- a/src/features/surveys/features/SurveyDisplay/components/AnswersComponent/AnswersComponentFactory.tsx
+++ b/src/features/surveys/features/SurveyDisplay/components/AnswersComponent/AnswersComponentFactory.tsx
@@ -57,7 +57,7 @@ export const AnswersComponentFactory = (
)}
{formData.oneQuestionPerStep && (
-
+
{isBackButtonVisible && (