Skip to content
Snippets Groups Projects
Commit 7e677f72 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

link to old interface added

parent 65b82709
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!217Resolve "link to old interface"
Pipeline #93323 passed
......@@ -9,10 +9,14 @@ import { IconButton } from '@/shared/IconButton';
import { store } from '@/redux/store';
import Image from 'next/image';
import { useAppSelector } from '@/redux/hooks/useAppSelector';
import { projectIdSelector } from '@/redux/project/project.selectors';
export const NavBar = (): JSX.Element => {
const dispatch = useAppDispatch();
const projectId = useAppSelector(projectIdSelector);
const toggleDrawerInfo = (): void => {
if (store.getState().drawer.isOpen && store.getState().drawer.drawerName === 'project-info') {
dispatch(closeDrawer());
......@@ -56,6 +60,8 @@ export const NavBar = (): JSX.Element => {
const apiDocsUrl = constant ? constant.apiDocsUrl : '';
const oldUrl = `old_index.xhtml?id=${projectId}`;
return (
<div className="flex min-h-full w-[88px] flex-col items-center justify-between overflow-y-auto bg-cultured py-8">
<div data-testid="nav-buttons">
......@@ -87,6 +93,11 @@ export const NavBar = (): JSX.Element => {
{version}
</a>
</span>
<span className="text-center text-[8px] leading-4">
<a href={oldUrl} target="_old_interface">
Old interface
</a>
</span>
</div>
</div>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment