From 047a92e83c56f65c30bdd4c34fb874b21c20ca15 Mon Sep 17 00:00:00 2001 From: Petr Hanak Date: Tue, 31 Oct 2023 12:55:57 +0000 Subject: [PATCH] add type to bookmarkTable row, cleanup unused SOL type --- .../EntityBookmarkTable/EntityBookmarkTableRow.tsx | 6 +++--- packages/shared/enums/relations.ts | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/client/src/pages/MainPage/containers/EntityBookmarkBox/EntityBookmarkTable/EntityBookmarkTableRow.tsx b/packages/client/src/pages/MainPage/containers/EntityBookmarkBox/EntityBookmarkTable/EntityBookmarkTableRow.tsx index d35a4f508..81323af04 100644 --- a/packages/client/src/pages/MainPage/containers/EntityBookmarkBox/EntityBookmarkTable/EntityBookmarkTableRow.tsx +++ b/packages/client/src/pages/MainPage/containers/EntityBookmarkBox/EntityBookmarkTable/EntityBookmarkTableRow.tsx @@ -7,13 +7,13 @@ import { useDrop, } from "react-dnd"; import { FaGripVertical } from "react-icons/fa"; -import { Cell, ColumnInstance } from "react-table"; +import { ColumnInstance, Row } from "react-table"; import { DragItem, ItemTypes } from "types"; import { dndHoverFn } from "utils"; import { StyledTd, StyledTr } from "./EntityBookmarkTableStyles"; interface EntityBookmarkTableRow { - row: any; + row: Row; index: number; moveRow: (dragIndex: number, hoverIndex: number) => void; folder: IResponseBookmarkFolder; @@ -67,7 +67,7 @@ export const EntityBookmarkTableRow: React.FC = ({ ) : ( )} - {row.cells.map((cell: Cell) => { + {row.cells.map((cell) => { return ( {cell.render("Cell")} ); diff --git a/packages/shared/enums/relations.ts b/packages/shared/enums/relations.ts index 0e1df3b84..543605d64 100644 --- a/packages/shared/enums/relations.ts +++ b/packages/shared/enums/relations.ts @@ -1,7 +1,6 @@ export namespace RelationEnums { export enum Type { Superclass = "SCL", - // SuperordinateEntity = "SOL", SuperordinateEntity = "SOE", Synonym = "SYN", Antonym = "ANT",