style answer option
This commit is contained in:
parent
05d5d396b8
commit
71e9f52e70
3 changed files with 12 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue