diff --git a/src/common/AsideMenu.js b/src/common/AsideMenu.js index a098d4cf..e9fa832f 100644 --- a/src/common/AsideMenu.js +++ b/src/common/AsideMenu.js @@ -1,18 +1,13 @@ -import listIcon from '@fortawesome/fontawesome-free-solid/faBars'; -import createIcon from '@fortawesome/fontawesome-free-solid/faPlus'; -import FontAwesomeIcon from '@fortawesome/react-fontawesome'; -import React from 'react'; -import { NavLink } from 'react-router-dom'; -import DeleteServerButton from '../servers/DeleteServerButton'; -import './AsideMenu.scss'; +import listIcon from '@fortawesome/fontawesome-free-solid/faBars' +import createIcon from '@fortawesome/fontawesome-free-solid/faPlus' +import FontAwesomeIcon from '@fortawesome/react-fontawesome' +import React from 'react' +import { NavLink } from 'react-router-dom' +import DeleteServerButton from '../servers/DeleteServerButton' +import './AsideMenu.scss' export default function AsideMenu({ selectedServer, history }) { const serverId = selectedServer ? selectedServer.id : ''; - const isListShortUrlsActive = (match, { pathname }) => { - // FIXME. Should use the 'match' params, but they are not being properly resolved. Investigate - const serverIdFromPathname = pathname.split('/')[2]; - return serverIdFromPathname === serverId && pathname.indexOf('list-short-urls') !== -1; - }; return (