diff --git a/quickwit/quickwit-ui/src/views/IndexView.tsx b/quickwit/quickwit-ui/src/views/IndexView.tsx index 59478b90721..26b81e5082f 100644 --- a/quickwit/quickwit-ui/src/views/IndexView.tsx +++ b/quickwit/quickwit-ui/src/views/IndexView.tsx @@ -17,11 +17,12 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -import { Box, styled, Typography, Link, Tab } from '@mui/material'; +import { Box, styled, Typography, Tab } from '@mui/material'; +import Link, { LinkProps } from '@mui/material/Link'; import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { Client } from '../services/client'; import Loader from '../components/Loader'; -import { useParams } from 'react-router-dom'; +import { Link as RouterLink, useParams } from 'react-router-dom'; import { Index } from '../utils/models'; import { TabContext, TabList, TabPanel } from '@mui/lab'; import { IndexSummary } from '../components/IndexSummary'; @@ -39,6 +40,16 @@ padding-right: 0; height: 100%; `; +// NOTE : https://mui.com/material-ui/react-breadcrumbs/#integration-with-react-router +interface LinkRouterProps extends LinkProps { + to: string; + replace?: boolean; +} + +function LinkRouter(props: LinkRouterProps) { + return ; +} + function IndexView() { const { indexId } = useParams(); const [loading, setLoading] = useState(false) @@ -123,9 +134,9 @@ function IndexView() { - + Indexes - + {indexId} { renderFetchIndexResult() }