Skip to content

Commit

Permalink
fix: sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Nov 6, 2024
1 parent 32ebac1 commit 5d22591
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion web/src/core/usecases/fileExplorer/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const { reducer, actions } = createUsecaseActions({
obj =>
objects.find(
o => o.basename === obj.basename && o.kind === obj.kind
) || obj
) ?? obj
);
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export type ListExplorerItemsProps = {
kind: Item["kind"];
}) => void;

onDeleteItem: (params: { item: Item }, onDeleteConfirmed?: () => void) => void;
onDeleteItems: (params: { items: Item[] }, onDeleteConfirmed?: () => void) => void;
onCopyPath: (params: { basename: string }) => void;
evtAction: NonPostableEvt<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ import { ButtonBarButton } from "onyxia-ui/ButtonBarButton";
import { MuiIconComponentName } from "onyxia-ui/MuiIconComponentName";
import { id } from "tsafe";
import { declareComponentKeys, useTranslation } from "ui/i18n";

import { memo, useId, useState, useRef } from "react";
import { MenuList } from "@mui/material";
import { MenuItem } from "@mui/material";
import { ListItemIcon } from "@mui/material";
import MenuList from "@mui/material/MenuList";
import MenuItem from "@mui/material/MenuItem";
import ListItemIcon from "@mui/material/ListItemIcon";
import { Icon } from "onyxia-ui/Icon";
import { isHideMenuKey } from "@mui/x-data-grid/utils/keyboardUtils";
import { tss } from "tss";
Expand Down

0 comments on commit 5d22591

Please sign in to comment.