diff --git a/app/src/components/Nav.js b/app/src/components/Nav.js index 770605c1..18e00ea4 100644 --- a/app/src/components/Nav.js +++ b/app/src/components/Nav.js @@ -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'}, { diff --git a/app/src/components/Videos.js b/app/src/components/Videos.js index bac210ed..dbd8bc6d 100644 --- a/app/src/components/Videos.js +++ b/app/src/components/Videos.js @@ -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 ( - - {props.link.text} - - ) -} - export function VideosRoute(props) { const links = [