Commit ·
f720420
1
Parent(s): 9d3a82f
Remove any
Browse files
src/components/question-output/QuestionEditModal.tsx
CHANGED
|
@@ -4,7 +4,6 @@ import { useState, useEffect } from 'react';
|
|
| 4 |
import { GeneratedQuestion, QuestionType } from '@/types/quiz';
|
| 5 |
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '@/components/ui/dialog';
|
| 6 |
import { Button } from '@/components/ui/button';
|
| 7 |
-
import { Input } from '@/components/ui/input';
|
| 8 |
import { Label } from '@/components/ui/label';
|
| 9 |
import { Textarea } from '@/components/ui/textarea';
|
| 10 |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
|
|
@@ -81,7 +80,7 @@ export default function QuestionEditModal({
|
|
| 81 |
onClose();
|
| 82 |
};
|
| 83 |
|
| 84 |
-
const updateQuestionField = (field: string, value:
|
| 85 |
if (!editedQuestion) return;
|
| 86 |
|
| 87 |
setEditedQuestion(prev => {
|
|
|
|
| 4 |
import { GeneratedQuestion, QuestionType } from '@/types/quiz';
|
| 5 |
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from '@/components/ui/dialog';
|
| 6 |
import { Button } from '@/components/ui/button';
|
|
|
|
| 7 |
import { Label } from '@/components/ui/label';
|
| 8 |
import { Textarea } from '@/components/ui/textarea';
|
| 9 |
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';
|
|
|
|
| 80 |
onClose();
|
| 81 |
};
|
| 82 |
|
| 83 |
+
const updateQuestionField = (field: string, value: string | number | boolean) => {
|
| 84 |
if (!editedQuestion) return;
|
| 85 |
|
| 86 |
setEditedQuestion(prev => {
|