Fix: Replace missing Select component with native select
This commit is contained in:
@@ -6,7 +6,6 @@ import { Button } from "@/components/ui/button"
|
|||||||
import { Badge } from "@/components/ui/badge"
|
import { Badge } from "@/components/ui/badge"
|
||||||
import { Switch } from "@/components/ui/switch"
|
import { Switch } from "@/components/ui/switch"
|
||||||
import { Input } from "@/components/ui/input"
|
import { Input } from "@/components/ui/input"
|
||||||
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"
|
|
||||||
import { Loader2, Upload, FileText, Clock, CalendarIcon } from "lucide-react"
|
import { Loader2, Upload, FileText, Clock, CalendarIcon } from "lucide-react"
|
||||||
import { format } from "date-fns"
|
import { format } from "date-fns"
|
||||||
|
|
||||||
@@ -121,14 +120,15 @@ export default function AdminTestsPage() {
|
|||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<label className="text-sm font-medium">Exam Pattern</label>
|
<label className="text-sm font-medium">Exam Pattern</label>
|
||||||
<Select value={examPattern} onValueChange={setExamPattern}>
|
<select
|
||||||
<SelectTrigger><SelectValue placeholder="Select Exam" /></SelectTrigger>
|
className="flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
|
||||||
<SelectContent>
|
value={examPattern}
|
||||||
<SelectItem value="JEE_Main">JEE Main</SelectItem>
|
onChange={(e) => setExamPattern(e.target.value)}
|
||||||
<SelectItem value="JEE_Advanced">JEE Advanced</SelectItem>
|
>
|
||||||
<SelectItem value="NEET">NEET</SelectItem>
|
<option value="JEE_Main">JEE Main</option>
|
||||||
</SelectContent>
|
<option value="JEE_Advanced">JEE Advanced</option>
|
||||||
</Select>
|
<option value="NEET">NEET</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user