feat: restore showAdvanced state for token dialog

Reintroduce 'showAdvanced' to control advanced settings visibility.

Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com>
This commit is contained in:
v0
2026-03-21 11:46:27 +00:00
parent 2a97c30530
commit 5d94133c64

View File

@@ -162,6 +162,7 @@ export default function TwoFactorAuth() {
const [isCameraOpen, setIsCameraOpen] = useState(false) const [isCameraOpen, setIsCameraOpen] = useState(false)
const [isSettingsOpen, setIsSettingsOpen] = useState(false) const [isSettingsOpen, setIsSettingsOpen] = useState(false)
const [editingToken, setEditingToken] = useState<TOTPToken | null>(null) const [editingToken, setEditingToken] = useState<TOTPToken | null>(null)
const [showAdvanced, setShowAdvanced] = useState(false)
const [showExportPassword, setShowExportPassword] = useState(false) const [showExportPassword, setShowExportPassword] = useState(false)
const [exportPassword, setExportPassword] = useState("") const [exportPassword, setExportPassword] = useState("")
const [importPassword, setImportPassword] = useState("") const [importPassword, setImportPassword] = useState("")