fix: pipeline

This commit is contained in:
abdou6666 2025-01-17 20:56:37 +01:00
parent c0691b0ab8
commit 1fda01ce57

View File

@ -12,24 +12,14 @@ import { Box, Grid, Paper } from "@mui/material";
import { GridColDef, GridEventListener } from "@mui/x-data-grid"; import { GridColDef, GridEventListener } from "@mui/x-data-grid";
import AttachmentThumbnail from "@/app-components/attachment/AttachmentThumbnail"; import AttachmentThumbnail from "@/app-components/attachment/AttachmentThumbnail";
import { DeleteDialog } from "@/app-components/dialogs/DeleteDialog";
import { FilterTextfield } from "@/app-components/inputs/FilterTextfield"; 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 { renderHeader } from "@/app-components/tables/columns/renderHeader";
import { DataGrid } from "@/app-components/tables/DataGrid"; 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 useFormattedFileSize from "@/hooks/useFormattedFileSize";
import { useSearch } from "@/hooks/useSearch"; import { useSearch } from "@/hooks/useSearch";
import { useToast } from "@/hooks/useToast";
import { useTranslate } from "@/hooks/useTranslate"; import { useTranslate } from "@/hooks/useTranslate";
import { PageHeader } from "@/layout/content/PageHeader"; import { PageHeader } from "@/layout/content/PageHeader";
import { EntityType } from "@/services/types"; import { EntityType } from "@/services/types";
import { PermissionAction } from "@/types/permission.types";
import { TFilterStringFields } from "@/types/search.types"; import { TFilterStringFields } from "@/types/search.types";
import { getDateTimeFormatter } from "@/utils/date"; import { getDateTimeFormatter } from "@/utils/date";
@ -46,7 +36,6 @@ type MediaLibraryProps = {
export const MediaLibrary = ({ onSelect, accept }: MediaLibraryProps) => { export const MediaLibrary = ({ onSelect, accept }: MediaLibraryProps) => {
const { t } = useTranslate(); const { t } = useTranslate();
const { toast } = useToast();
const formatFileSize = useFormattedFileSize(); const formatFileSize = useFormattedFileSize();
const { onSearch, searchPayload } = useSearch<IAttachment>({ const { onSearch, searchPayload } = useSearch<IAttachment>({
$iLike: ["name"], $iLike: ["name"],
@ -76,7 +65,6 @@ export const MediaLibrary = ({ onSelect, accept }: MediaLibraryProps) => {
}, },
}, },
); );
const columns: GridColDef<IAttachment>[] = [ const columns: GridColDef<IAttachment>[] = [
{ field: "id", headerName: "ID" }, { field: "id", headerName: "ID" },
{ {