Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mseaton authored and chibongho committed Mar 7, 2024
1 parent cb54ffb commit 7878540
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@ import { SideNavMenu, SideNavMenuItem } from '@carbon/react';
import { ConfigurableLink } from '@openmrs/esm-framework';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { type Queue } from '../types/index';
import { type Queue } from '../types';
import { useQueues } from '../hooks/useQueues';
import classNames from "classnames";
import {BrowserRouter, useLocation} from "react-router-dom";
import classNames from 'classnames';
import { BrowserRouter, useLocation } from 'react-router-dom';

function QueueTableLink({ basePath, queue }: { basePath:string, queue: Queue }) {
function QueueTableLink({ basePath, queue }: { basePath: string; queue: Queue }) {
const { t } = useTranslation();
const location = useLocation();
const pageUrl = basePath + '/' + queue.uuid;
const selected = location.pathname.startsWith(pageUrl);
return (
<ConfigurableLink
className={classNames('cds--side-nav__link', { 'active-left-nav-link': selected })} // TODO: Adjust this CSS
to={`${basePath}/${queue.uuid}`}
>
to={`${basePath}/${queue.uuid}`}>
{queue.display}
</ConfigurableLink>
);
Expand Down

0 comments on commit 7878540

Please sign in to comment.