From 4c72030687206767c58ab98edefaeb2e7ffee67e Mon Sep 17 00:00:00 2001 From: dnviti Date: Sat, 6 Dec 2025 01:00:30 +0100 Subject: [PATCH] refactor: remove quick add and page navigation sections from editor toolbar --- .../components/reportEditor/EditorToolbar.tsx | 103 +----------------- 1 file changed, 1 insertion(+), 102 deletions(-) diff --git a/src/frontend/src/apps/report-designer/components/reportEditor/EditorToolbar.tsx b/src/frontend/src/apps/report-designer/components/reportEditor/EditorToolbar.tsx index a847348..ee08137 100644 --- a/src/frontend/src/apps/report-designer/components/reportEditor/EditorToolbar.tsx +++ b/src/frontend/src/apps/report-designer/components/reportEditor/EditorToolbar.tsx @@ -1385,25 +1385,7 @@ export default function EditorToolbar({ sx={{ mx: 0.5, height: 32, alignSelf: "center" }} /> - {/* Quick Add Toolbar */} - - {ELEMENT_TYPES.map(({ type, icon: Icon, label, color }) => ( - e.type === type)?.shortcut})`} - onClick={() => onAddElement(type)} - color={color} - > - - - ))} - - {/* Selection Actions */} @@ -1715,93 +1697,10 @@ export default function EditorToolbar({ - - {/* Page Navigation */} - - - - - - - - = totalPages - 1} - > - - - {/* Page Menu */} - setPageMenuAnchor(null)} - PaperProps={{ sx: { borderRadius: 2, minWidth: 200 } }} - > - - - Pagina corrente - - - {currentPageName} - - - - { - onPrevPage(); - setPageMenuAnchor(null); - }} - disabled={currentPageIndex <= 0} - > - - - - - - { - onNextPage(); - setPageMenuAnchor(null); - }} - disabled={currentPageIndex >= totalPages - 1} - > - - - - - - +