diff --git a/taxonomy-editor-frontend/src/components/EntryNodesTableBody.tsx b/taxonomy-editor-frontend/src/components/EntryNodesTableBody.tsx index 37cf89f3..13152fc3 100644 --- a/taxonomy-editor-frontend/src/components/EntryNodesTableBody.tsx +++ b/taxonomy-editor-frontend/src/components/EntryNodesTableBody.tsx @@ -8,7 +8,7 @@ import { Tooltip, Typography, } from "@mui/material"; -import { Link } from "react-router-dom"; +import { useNavigate } from "react-router-dom"; import ISO6391 from "iso-639-1"; import { useEffect, useState } from "react"; import { SHOWN_LANGUAGES_KEY } from "@/pages/project/editentry/ListTranslations"; @@ -59,6 +59,8 @@ export const EntryNodesTableBody = ({ }: Props) => { const [shownLanguageCodes, setShownLanguageCodes] = useState([]); + const navigate = useNavigate(); + useEffect(() => { // get shown languages from local storage if it exists else use main language try { @@ -95,8 +97,9 @@ export const EntryNodesTableBody = ({ { + navigate(`/${taxonomyName}/${branchName}/entry/${id}`); + }} sx={{ textDecoration: "none" }} > diff --git a/taxonomy-editor-frontend/src/pages/project/errors/index.tsx b/taxonomy-editor-frontend/src/pages/project/errors/index.tsx index fd8a4452..2826ba3b 100644 --- a/taxonomy-editor-frontend/src/pages/project/errors/index.tsx +++ b/taxonomy-editor-frontend/src/pages/project/errors/index.tsx @@ -10,6 +10,7 @@ import { TableBody, TableHead, TableContainer, + TableRow, Stack, } from "@mui/material"; import MaterialTable from "@material-table/core"; @@ -69,22 +70,26 @@ export const Errors = () => { - - Taxonomy Name - - - Branch Name - + + + Taxonomy Name + + + Branch Name + + - - - {toTitleCase(taxonomyName || "")} - - - - {branchName} - + + + + {toTitleCase(taxonomyName || "")} + + + + {branchName} + +