Skip to content

Commit

Permalink
remove orcidlink navigation [URO-206]
Browse files Browse the repository at this point in the history
without feature switches or being able to restrict to devs, we don't want the navigation to leak out in a release
  • Loading branch information
eapearson committed May 1, 2024
1 parent 7e4987a commit bcbf09a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 22 deletions.
16 changes: 7 additions & 9 deletions src/features/layout/LeftNavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
/* LeftNavBar */
import { FontAwesomeIcon as FAIcon } from '@fortawesome/react-fontawesome';
import {
faCompass,
faUsers,
faBook,
faBullhorn,
faCompass,
faIdCard,
faLayerGroup,
faSearch,
faSuitcase,
faIdCard,
faBullhorn,
faUsers,
IconDefinition,
faLayerGroup,
faLink,
} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon as FAIcon } from '@fortawesome/react-fontawesome';
import { FC } from 'react';
import { Link, useLocation } from 'react-router-dom';
import { getFeedsUnseenCount } from '../../common/api/feedsService';
import { useAppSelector } from '../../common/hooks';
import { authMe, authToken } from '../auth/authSlice';
import { useAuthMe } from '../auth/hooks';
import classes from './LeftNavBar.module.scss';
import { getFeedsUnseenCount } from '../../common/api/feedsService';

const LeftNavBar: FC = () => {
const token = useAppSelector(authToken);
Expand All @@ -38,7 +37,6 @@ const LeftNavBar: FC = () => {
<NavItem path="/legacy/search" desc="Search" icon={faSearch} />
<NavItem path="/legacy/jobbrowser" desc="Jobs" icon={faSuitcase} />
<NavItem path="/legacy/account" desc="Account" icon={faIdCard} />
<NavItem path="/orcidlink" desc="ORCID Link" icon={faLink} />
<NavItem
path="/legacy/feeds"
desc="Feeds"
Expand Down
20 changes: 7 additions & 13 deletions src/features/layout/TopBar.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { FontAwesomeIcon as FAIcon } from '@fortawesome/react-fontawesome';
import {
faBars,
faEnvelope,
faFile,
faFlask,
faIdCard,
faInfo,
faLink,
faPlus,
faQuestion,
faQuestionCircle,
Expand All @@ -18,20 +16,21 @@ import {
faUser,
faWrench,
} from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon as FAIcon } from '@fortawesome/react-fontawesome';
import { FC, useMemo } from 'react';
import { useNavigate } from 'react-router-dom';

import { toast } from 'react-hot-toast';
import { Link } from 'react-router-dom';
import { resetStateAction } from '../../app/store';
import { revokeToken } from '../../common/api/authService';
import { getUserProfile } from '../../common/api/userProfileApi';
import logo from '../../common/assets/logo/46_square.png';
import { Dropdown } from '../../common/components';
import { useAppDispatch, useAppSelector } from '../../common/hooks';
import { authUsername, setAuth } from '../auth/authSlice';
import classes from './TopBar.module.scss';
import { Link } from 'react-router-dom';
import { getUserProfile } from '../../common/api/userProfileApi';
import { revokeToken } from '../../common/api/authService';
import { toast } from 'react-hot-toast';
import { noOp } from '../common';
import { resetStateAction } from '../../app/store';
import classes from './TopBar.module.scss';

export default function TopBar() {
const username = useAppSelector(authUsername);
Expand Down Expand Up @@ -204,11 +203,6 @@ const HamburgerMenu: FC = () => {
icon: <FAIcon icon={faServer} />,
label: 'KBase Services Status',
},
{
value: '/orcidlink',
icon: <FAIcon icon={faLink} />,
label: 'ORCID Link',
},
],
},
{
Expand Down

0 comments on commit bcbf09a

Please sign in to comment.