style answer option

This commit is contained in:
Tatiana Nikolaeva 2025-04-05 21:39:28 +05:00
parent 05d5d396b8
commit 71e9f52e70
3 changed files with 12 additions and 2 deletions

View file

@ -4,6 +4,7 @@ import styles from'./AnswerOption.module.css';
const single_selected_response = '../../../public/radio_button_checked.svg';
const multiple_selected_response = '../../../public/check_box.svg';
// const single_response =
// const multiple_response =
interface AnswerOptionProps{
index: number;
@ -14,7 +15,7 @@ interface AnswerOptionProps{
const AnswerOption: React.FC<AnswerOptionProps> = ({index, value, onChange, selectedType}) => {
const [currentValue, setCurrentValue] = useState(value);
const [isEditing, setIsEditing] = useState(false); //редактируется ли сейчас
const [isEditing, setIsEditing] = useState(false);
const textAreaRef = useRef<HTMLTextAreaElement>(null);