fix: remove unused imports, functions, and types after discovering using npm run lint

This commit is contained in:
Haileyesus
2026-03-05 17:14:17 +03:00
parent 525c9f72ca
commit 65efda3278
15 changed files with 9 additions and 52 deletions

View File

@@ -1,5 +1,4 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import type React from 'react';
import type { TFunction } from 'i18next';
import { api } from '../../../utils/api';
import type { Project, ProjectSession, SessionProvider } from '../../../types/app';
@@ -141,21 +140,6 @@ export function useSidebarController({
};
}, []);
const handleTouchClick = useCallback(
(callback: () => void) =>
(event: React.TouchEvent<HTMLElement>) => {
const target = event.target as HTMLElement;
if (target.closest('.overflow-y-auto') || target.closest('[data-scroll-container]')) {
return;
}
event.preventDefault();
event.stopPropagation();
callback();
},
[],
);
const toggleProject = useCallback((projectName: string) => {
setExpandedProjects((prev) => {
const next = new Set<string>();
@@ -460,7 +444,6 @@ export function useSidebarController({
showVersionModal,
starredProjects,
filteredProjects,
handleTouchClick,
toggleProject,
handleSessionClick,
toggleStarProject,