styles for navigation and survey info
This commit is contained in:
parent
1bc96d830e
commit
2cbfb06b4a
30 changed files with 199 additions and 555 deletions
|
|
@ -4,9 +4,6 @@ import AddAnswerButton from "../AddAnswerButton/AddAnswerButton.tsx";
|
|||
import TypeDropdown from "../TypeDropdown/TypeDropdown.tsx";
|
||||
import styles from './QuestionItem.module.css'
|
||||
|
||||
import SingleChoiceIcon from '../../../public/radio_button_checked.svg?react';
|
||||
import MultiplyChoiceIcon from '../../../public/check_box.svg?react';
|
||||
|
||||
|
||||
interface QuestionItemProps {
|
||||
indexQuestion: number;
|
||||
|
|
@ -44,7 +41,9 @@ const QuestionItem: React.FC<QuestionItemProps> = ({indexQuestion, initialTextQu
|
|||
{answerOption.map((answerText, index) => (
|
||||
<AnswerOption
|
||||
key={index}
|
||||
src={questionType === "single" ? <SingleChoiceIcon /> : <MultiplyChoiceIcon />}
|
||||
src={questionType === "single" ?
|
||||
'../../../public/radio_button_checked.svg' :
|
||||
'../../../public/check_box.svg' }
|
||||
index={index + 1} // Индекс ответа
|
||||
value={answerText}
|
||||
onChange={(value) => handleAnswerChange(index, value)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue