setIsActive(prev => !prev)}
- className="w-full h-fit flex items-center justify-center"
- tabIndex={0}
- onKeyDown={e => {
- if (e.code === "Enter" && !isActive) {
- setIsActive(true)
- }
- }}
- >
- {isActive ?
-
setValue(e.target.value)} // onBlur={handleClose}
- autoFocus={true}
- onBlur={handleClose}
- onKeyDown={handleKeyDown}
- className="w-full"
- />
- :
{value}
- }
-
)
-}
diff --git a/src/app/ui/tables/contextMenu.tsx b/src/app/ui/tables/contextMenu.tsx
index 6665f91..5faf8fc 100644
--- a/src/app/ui/tables/contextMenu.tsx
+++ b/src/app/ui/tables/contextMenu.tsx
@@ -7,6 +7,7 @@ import Link from "next/link"
import { ComponentProps } from "react"
import { Row, Table, TableState } from "@tanstack/react-table"
import { letterCase } from "app/lib/functions"
+import { tableNameToItemName } from "app/lib/nameMaps"
export default function FormContextMenu({ table, row }: ComponentProps<"div"> & { table: Table