fix: remove 8 unused variables in File Manager and Host Manager components

Cleaned up unused imports, state variables, and function parameters:
- DiffViewer.tsx: removed unused error parameter in catch block
- FileViewer.tsx: removed ReactPlayer import, unused originalContent state,
  node parameters from markdown code components, audio variable
- HostManager.tsx: removed onSelectView and updatedHost parameters
- TunnelViewer.tsx: removed TunnelConnection import

Reduced lint errors from 271 to 208 (63 errors fixed total)
This commit is contained in:
ZacharyZcR
2025-10-09 19:44:01 +08:00
parent c19dbbd8bd
commit 45a4f09172
4 changed files with 6 additions and 15 deletions

View File

@@ -15,7 +15,6 @@ import { useTranslation } from "react-i18next";
import type { SSHHost, HostManagerProps } from "../../../types/index";
export function HostManager({
onSelectView,
isTopbarOpen,
}: HostManagerProps): React.ReactElement {
const { t } = useTranslation();
@@ -30,7 +29,7 @@ export function HostManager({
setActiveTab("add_host");
};
const handleFormSubmit = (updatedHost?: SSHHost) => {
const handleFormSubmit = () => {
setEditingHost(null);
setActiveTab("host_viewer");
};