refactor(FoldersSidebar): remove unused TagIcon import and related tag variable for cleaner code
This commit is contained in:
@@ -11,7 +11,6 @@ import {
|
||||
Trash2,
|
||||
ChevronRight,
|
||||
ChevronDown,
|
||||
Tag as TagIcon,
|
||||
} from 'lucide-react';
|
||||
import { createFolder, updateFolder, deleteFolder } from '@/actions/folders';
|
||||
|
||||
@@ -48,7 +47,6 @@ function FolderItem({
|
||||
const [isExpanded, setIsExpanded] = useState(true);
|
||||
const [isDragOver, setIsDragOver] = useState(false);
|
||||
const hasChildren = folder.children && folder.children.length > 0;
|
||||
const tag = availableTags.find((t) => t.id === folder.tagId);
|
||||
|
||||
const handleEdit = (e: React.MouseEvent) => {
|
||||
e.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user