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