♻️ (index.tsx): remove unused handleEditFolder prop and import

♻️ (index.tsx): remove redundant commas and fix formatting issues
♻️ (headerComponent): remove unused ForwardedIconComponent import
This commit is contained in:
cristhianzl 2024-06-07 08:48:46 -03:00
commit 44d6c959ce
2 changed files with 1 additions and 7 deletions

View file

@ -14,19 +14,16 @@ import IconComponent, {
import { Button, buttonVariants } from "../../../ui/button"; import { Button, buttonVariants } from "../../../ui/button";
import { Input } from "../../../ui/input"; import { Input } from "../../../ui/input";
import useFileDrop from "../../hooks/use-on-file-drop"; import useFileDrop from "../../hooks/use-on-file-drop";
import useAlertStore from "../../../../stores/alertStore";
type SideBarFoldersButtonsComponentProps = { type SideBarFoldersButtonsComponentProps = {
folders: FolderType[]; folders: FolderType[];
pathname: string; pathname: string;
handleChangeFolder?: (id: string) => void; handleChangeFolder?: (id: string) => void;
handleEditFolder?: (item: FolderType) => void;
handleDeleteFolder?: (item: FolderType) => void; handleDeleteFolder?: (item: FolderType) => void;
}; };
const SideBarFoldersButtonsComponent = ({ const SideBarFoldersButtonsComponent = ({
pathname, pathname,
handleChangeFolder, handleChangeFolder,
handleEditFolder,
handleDeleteFolder, handleDeleteFolder,
}: SideBarFoldersButtonsComponentProps) => { }: SideBarFoldersButtonsComponentProps) => {
const refInput = useRef<HTMLInputElement>(null); const refInput = useRef<HTMLInputElement>(null);

View file

@ -1,12 +1,9 @@
import { useState } from "react"; import { useState } from "react";
import IconComponent, { import IconComponent from "../../../../components/genericIconComponent";
ForwardedIconComponent,
} from "../../../../components/genericIconComponent";
import ShadTooltip from "../../../../components/shadTooltipComponent"; import ShadTooltip from "../../../../components/shadTooltipComponent";
import { Button } from "../../../../components/ui/button"; import { Button } from "../../../../components/ui/button";
import { Checkbox } from "../../../../components/ui/checkbox"; import { Checkbox } from "../../../../components/ui/checkbox";
import { cn } from "../../../../utils/utils"; import { cn } from "../../../../utils/utils";
import { Button } from "../../../../components/ui/button";
type HeaderComponentProps = { type HeaderComponentProps = {
handleSelectAll: (select) => void; handleSelectAll: (select) => void;