From 53079fe8688e5e24bc85242c6f4cd8cdf44b6517 Mon Sep 17 00:00:00 2001 From: maulanasdqn Date: Sun, 12 Apr 2026 00:11:04 +0700 Subject: [PATCH] refactor: move backoffice sidebar from shared libs to app-local component --- .../backoffice/src/components/sidebar.tsx | 2 +- apps/backoffice/src/routes/_authenticated.tsx | 2 +- libs/ui/src/organisms/backoffice-sidebar/index.ts | 1 - libs/ui/src/organisms/index.ts | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) rename libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx => apps/backoffice/src/components/sidebar.tsx (99%) delete mode 100644 libs/ui/src/organisms/backoffice-sidebar/index.ts diff --git a/libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx b/apps/backoffice/src/components/sidebar.tsx similarity index 99% rename from libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx rename to apps/backoffice/src/components/sidebar.tsx index cf2d02a..c5b8d7e 100644 --- a/libs/ui/src/organisms/backoffice-sidebar/backoffice-sidebar.tsx +++ b/apps/backoffice/src/components/sidebar.tsx @@ -18,7 +18,7 @@ import { UserOutlined, UserSwitchOutlined, } from '@ant-design/icons'; -import { Button } from '../../atoms'; +import { Button } from '@imphnen-frontend-service/ui/atoms'; import { FC, ReactElement, useState } from 'react'; import { useLocation, useNavigate } from '@tanstack/react-router'; import { cn, For } from '@imphnen-frontend-service/utils'; diff --git a/apps/backoffice/src/routes/_authenticated.tsx b/apps/backoffice/src/routes/_authenticated.tsx index 0c23d34..673b7f0 100644 --- a/apps/backoffice/src/routes/_authenticated.tsx +++ b/apps/backoffice/src/routes/_authenticated.tsx @@ -1,7 +1,7 @@ import { createFileRoute, Outlet, redirect } from '@tanstack/react-router' import { SessionToken } from '@imphnen-frontend-service/service' import { useState } from 'react' -import { BackofficeSidebar } from '@imphnen-frontend-service/ui/organisms' +import { BackofficeSidebar } from '../components/sidebar' export const Route = createFileRoute('/_authenticated')({ beforeLoad: () => { diff --git a/libs/ui/src/organisms/backoffice-sidebar/index.ts b/libs/ui/src/organisms/backoffice-sidebar/index.ts deleted file mode 100644 index cc302f9..0000000 --- a/libs/ui/src/organisms/backoffice-sidebar/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './backoffice-sidebar' diff --git a/libs/ui/src/organisms/index.ts b/libs/ui/src/organisms/index.ts index 38e8964..9ededfc 100644 --- a/libs/ui/src/organisms/index.ts +++ b/libs/ui/src/organisms/index.ts @@ -1,7 +1,6 @@ export * from './navbar'; export * from './modals-gacha'; export * from './auth-banner'; -export * from './backoffice-sidebar'; export * from './datatable'; export * from './filter'; export * from './controlled-field';