feat: enhance server stats widgets and fix TypeScript/ESLint errors #394

Merged
ZacharyZcR merged 50 commits from feature-server-stats-customization into dev-1.8.0 2025-10-10 03:48:34 +00:00
2 changed files with 1 additions and 3 deletions
Showing only changes of commit af5af57d4b - Show all commits
@@ -5,7 +5,6 @@ import React, {
useRef, useRef,
type ReactNode, type ReactNode,
} from "react"; } from "react";
import { useTranslation } from "react-i18next";
import type { TabContextTab } from "../../../types/index.js"; import type { TabContextTab } from "../../../types/index.js";
export type Tab = TabContextTab; export type Tab = TabContextTab;
@@ -34,7 +33,6 @@ interface TabProviderProps {
} }
export function TabProvider({ children }: TabProviderProps) { export function TabProvider({ children }: TabProviderProps) {
const { t } = useTranslation();
const [tabs, setTabs] = useState<Tab[]>([]); const [tabs, setTabs] = useState<Tab[]>([]);
const [currentTab, setCurrentTab] = useState<number | null>(null); const [currentTab, setCurrentTab] = useState<number | null>(null);
const nextTabId = useRef(1); const nextTabId = useRef(1);
+1 -1
View File
@@ -248,7 +248,7 @@ export function useDragToDesktop({ sshSessionId }: UseDragToDesktopProps) {
const dragFolderToDesktop = useCallback( const dragFolderToDesktop = useCallback(
async (folder: FileItem, options: DragToDesktopOptions = {}) => { async (folder: FileItem, options: DragToDesktopOptions = {}) => {
const { enableToast = true, onSuccess, onError } = options; const { enableToast = true, onError } = options;
if (!isElectron()) { if (!isElectron()) {
const error = const error =