diff --git a/modules/customers/src/web/list/ui/pages/list-customers-page.tsx b/modules/customers/src/web/list/ui/pages/list-customers-page.tsx
index 437d2608..7d575cd1 100644
--- a/modules/customers/src/web/list/ui/pages/list-customers-page.tsx
+++ b/modules/customers/src/web/list/ui/pages/list-customers-page.tsx
@@ -1,6 +1,11 @@
import { PageHeader, SimpleSearchInput } from "@erp/core/components";
import { AppContent, AppHeader, BackHistoryButton } from "@repo/rdx-ui/components";
-import { Button } from "@repo/shadcn-ui/components";
+import {
+ Button,
+ ResizableHandle,
+ ResizablePanel,
+ ResizablePanelGroup,
+} from "@repo/shadcn-ui/components";
import { PlusIcon } from "lucide-react";
import { useNavigate } from "react-router-dom";
@@ -22,6 +27,31 @@ export const ListCustomersPage = () => {
//onDeleteClick: (customer) => null, //confirmDelete(inv.id),
});
+ const isPanelOpen = panelCtrl.panelState.isOpen;
+
+ const listContent = (
+
+ );
+
if (listCtrl.isError) {
return (
@@ -51,43 +81,45 @@ export const ListCustomersPage = () => {
title={t("pages.list.title")}
/>
+
-
-
-
-
-
+ {isPanelOpen ? (
+
+
+ {listContent}
+
- null}
- pageIndex={listCtrl.pageIndex}
- pageSize={listCtrl.pageSize}
- />
-
+
-
navigate(`/customers/${customer.id}/edit`)}
- onOpenChange={(open) => {
- if (open) panelCtrl.panelState.onOpenChange(true);
- else panelCtrl.closePanel();
- }}
- onTogglePinned={panelCtrl.panelState.togglePinned}
- open={panelCtrl.panelState.isOpen}
- visibility={panelCtrl.panelState.visibility}
- />
-
+
+
+ navigate(`/customers/${customer.id}/edit`)}
+ onOpenChange={(open) => {
+ if (!open) {
+ panelCtrl.closePanel();
+ return;
+ }
+
+ panelCtrl.panelState.onOpenChange(true);
+ }}
+ onTogglePinned={panelCtrl.panelState.togglePinned}
+ open={panelCtrl.panelState.isOpen}
+ visibility={panelCtrl.panelState.visibility}
+ />
+
+
+
+ ) : (
+ {listContent}
+ )}
>
);
diff --git a/packages/rdx-ui/src/components/right-panel/right-panel.tsx b/packages/rdx-ui/src/components/right-panel/right-panel.tsx
index 33deacd4..be4a5d88 100644
--- a/packages/rdx-ui/src/components/right-panel/right-panel.tsx
+++ b/packages/rdx-ui/src/components/right-panel/right-panel.tsx
@@ -17,37 +17,30 @@ export const RightPanel = ({
return (