fix communication between question and selecte question cards

This commit is contained in:
WindowsCrashed
2023-08-08 14:23:39 -03:00
parent c26ae6194f
commit ebb7966cd1
4 changed files with 15 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ export const QuestionCard: FC<Props> = ({ title, onAddQuestion, onRemoveQuestion
setButtonState({
bg: 'bg-red-700', label: 'Remover', method: handleRemoveQuestion
})
onAddQuestion(title)
onAddQuestion(title, handleRemoveQuestion)
}
const handleRemoveQuestion = () => {