Removing sduplicateLink. Inventory link is not exact so it remains active in summary.

This commit is contained in:
Roland 2022-01-30 15:21:58 -07:00
parent 8d9df32719
commit 2fa2438539
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 2 additions and 19 deletions

View file

@ -6,7 +6,7 @@ const responsiveWidth = 500;
const links = [
{text: 'Videos', to: '/videos'},
{text: 'Inventory', to: '/inventory', exact: true},
{text: 'Inventory', to: '/inventory'},
{text: 'Archive', to: '/archive'},
{text: 'Files', to: '/files'},
{

View file

@ -1,5 +1,5 @@
import React from 'react';
import {NavLink, Route} from "react-router-dom";
import {Link, NavLink, Route} from "react-router-dom";
import Paginator, {
changePageHistory,
DEFAULT_LIMIT,
@ -502,23 +502,6 @@ function ManageTab(props) {
)
}
function Link(props) {
let classes = 'item';
if (props.link.header) {
classes = `${classes} header`;
}
return (
<NavLink
className={classes}
exact={props.link.exact || false}
to={props.link.to}
>
{props.link.text}
</NavLink>
)
}
export function VideosRoute(props) {
const links = [