feat: updates page and lint fixes

This commit is contained in:
2026-05-01 10:15:13 +08:00
parent 7bcd580397
commit ca08024cb5
25 changed files with 188 additions and 314 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
"use client"
import { useState, useEffect } from "react"
import { Shield, ShieldCheck, ShieldX, ShieldQuestion, Pencil } from "lucide-react"
import { Shield, ShieldCheck, ShieldX, ShieldQuestion } from "lucide-react"
import { cn } from "@/lib/utils"
export type AntiCheatData = {
@@ -61,7 +61,7 @@ export function AntiCheatStep({
value,
onChange,
}: AntiCheatStepProps) {
const [isEditing, setIsEditing] = useState(false)
const [isEditing] = useState(false)
// Find the best existing entry to prefill:
// Prefer the entry for the currently selected hardware,
+1 -1
View File
@@ -1,7 +1,7 @@
"use client"
import { motion } from "motion/react"
import { Send, Loader2, AlertCircle, Monitor, Gauge, SlidersHorizontal, Terminal, FileText, GitBranch, Shield } from "lucide-react"
import { Send, Loader2, AlertCircle, Monitor, Gauge, SlidersHorizontal, Terminal, FileText } from "lucide-react"
import { TiptapEditor } from "@/components/tiptap-editor"
import type { SettingCategory } from "@/components/wizard/settings-editor"
import type { PerformanceData } from "./performance-step"
+4 -2
View File
@@ -33,11 +33,13 @@ interface SetupStepProps {
}
export function SetupStep({
gameId,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
gameId: _gameId,
gameVersions,
hardwareSlug,
onHardwareChange,
hardwareName,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
hardwareName: _hardwareName,
selectedVersionId,
onVersionChange,
newVersionString,