mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 17:36:18 -05:00
Removing sduplicateLink. Inventory link is not exact so it remains active in summary.
This commit is contained in:
parent
8d9df32719
commit
2fa2438539
2 changed files with 2 additions and 19 deletions
|
|
@ -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'},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue