From 5cbad2a996b50f326582f74a94a466b573b70e89 Mon Sep 17 00:00:00 2001 From: maulanasdqn Date: Sat, 11 Apr 2026 18:29:41 +0700 Subject: [PATCH] fix: replace TanStack Router Link with plain in shared sidebar to avoid route type issues --- .../backoffice-sidebar/backoffice-sidebar.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx b/libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx index 12a2891..ef0b498 100644 --- a/libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx +++ b/libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx @@ -20,7 +20,7 @@ import { } from '@ant-design/icons'; import { Button } from '../../atoms'; import { FC, ReactElement, useState } from 'react'; -import { Link, useLocation } from '@tanstack/react-router'; +import { useLocation } from '@tanstack/react-router'; import { cn, For } from '@imphnen-frontend-service/utils'; import { useSession } from '@imphnen-frontend-service/service'; @@ -238,9 +238,9 @@ export const BackofficeSidebar: FC = ({ {openGroups[menu.label] && (
{menu.children.map((child) => ( - = ({ {child.label} - + ))}
)} ) : ( - = ({ > {menu.icon} {menu.label} - + ) }