From 1fda01ce57c973195a00b81997fcc2f8466e00c7 Mon Sep 17 00:00:00 2001 From: abdou6666 Date: Fri, 17 Jan 2025 20:56:37 +0100 Subject: [PATCH] fix: pipeline --- frontend/src/components/media-library/index.tsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/frontend/src/components/media-library/index.tsx b/frontend/src/components/media-library/index.tsx index 5ee442d7..31985535 100644 --- a/frontend/src/components/media-library/index.tsx +++ b/frontend/src/components/media-library/index.tsx @@ -12,24 +12,14 @@ import { Box, Grid, Paper } from "@mui/material"; import { GridColDef, GridEventListener } from "@mui/x-data-grid"; import AttachmentThumbnail from "@/app-components/attachment/AttachmentThumbnail"; -import { DeleteDialog } from "@/app-components/dialogs/DeleteDialog"; import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; -import { - ActionColumnLabel, - useActionColumns, -} from "@/app-components/tables/columns/getColumns"; import { renderHeader } from "@/app-components/tables/columns/renderHeader"; import { DataGrid } from "@/app-components/tables/DataGrid"; -import { useDelete } from "@/hooks/crud/useDelete"; -import { useFind } from "@/hooks/crud/useFind"; -import { useDialog } from "@/hooks/useDialog"; import useFormattedFileSize from "@/hooks/useFormattedFileSize"; import { useSearch } from "@/hooks/useSearch"; -import { useToast } from "@/hooks/useToast"; import { useTranslate } from "@/hooks/useTranslate"; import { PageHeader } from "@/layout/content/PageHeader"; import { EntityType } from "@/services/types"; -import { PermissionAction } from "@/types/permission.types"; import { TFilterStringFields } from "@/types/search.types"; import { getDateTimeFormatter } from "@/utils/date"; @@ -46,7 +36,6 @@ type MediaLibraryProps = { export const MediaLibrary = ({ onSelect, accept }: MediaLibraryProps) => { const { t } = useTranslate(); - const { toast } = useToast(); const formatFileSize = useFormattedFileSize(); const { onSearch, searchPayload } = useSearch({ $iLike: ["name"], @@ -76,7 +65,6 @@ export const MediaLibrary = ({ onSelect, accept }: MediaLibraryProps) => { }, }, ); - const columns: GridColDef[] = [ { field: "id", headerName: "ID" }, {