Skip to content

Commit

Permalink
fixed eslint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eperedo committed Dec 11, 2024
1 parent 051e2df commit ab35c51
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/webapp/components/projects/ProjectTable.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import React from "react";
import {
ObjectsTable,
useLoading,
useObjectsTable,
useSnackbar,
} from "@eyeseetea/d2-ui-components";
import { ObjectsTable, useObjectsTable, useSnackbar } from "@eyeseetea/d2-ui-components";
import DetailsIcon from "@material-ui/icons/Details";

import { DataSet } from "$/domain/entities/DataSet";
Expand All @@ -14,7 +9,6 @@ import { TooltipTruncate } from "$/webapp/components/tooltip-truncate/TooltipTru
import { useAppContext } from "$/webapp/contexts/app-context";
import { parseSortField } from "$/utils/parse-sort-field";
import { useNavigateTo } from "$/webapp/routes";
import { useDataSetsRoutes } from "$/webapp/hooks/useDataSets";
import { DataSetActions, TableAction } from "$/webapp/components/dataset-table/DataSetActions";
import { getCommonActions } from "$/webapp/components/dataset-table/DataSetTableConfig";

Expand All @@ -26,10 +20,8 @@ function objIsDataSet(project: ProjectColumns): boolean {

export const ProjectTable = React.memo(() => {
const { compositionRoot } = useAppContext();
const loading = useLoading();
const snackbar = useSnackbar();
const navigateTo = useNavigateTo();
const { goToCreateDataSet } = useDataSetsRoutes();
const [refreshTable, setRefreshTable] = React.useState(0);
const [tableAction, setTableAction] = React.useState<TableAction>();
const [isLoading, setLoading] = React.useState(false);
Expand Down Expand Up @@ -106,7 +98,7 @@ export const ProjectTable = React.memo(() => {
searchBoxLabel: i18n.t("Search"),
childrenKeys: ["dataSets"],
};
}, [goToCreateDataSet, navigateTo]),
}, [navigateTo]),
React.useCallback(
(search, pagination, sorting) => {
console.debug(refreshTable);
Expand Down Expand Up @@ -146,7 +138,7 @@ export const ProjectTable = React.memo(() => {
);
});
},
[compositionRoot.projects.get, loading, snackbar, refreshTable]
[compositionRoot.projects.get, snackbar, refreshTable]
)
);

Expand Down

0 comments on commit ab35c51

Please sign in to comment.