diff --git a/src/components/tab-manager.tsx b/src/components/tab-manager.tsx index 09d34295..aa146e1c 100644 --- a/src/components/tab-manager.tsx +++ b/src/components/tab-manager.tsx @@ -17,6 +17,7 @@ interface TabManagerProps { onTabChange?: (tabValue: string) => void direction?: 'rtl' | 'ltr' tabPosition?: 'top' | 'side' + children?: ReactNode // for additional tab buttons at the end of aside (just pass the actual buttons) } export const TabManager = ({ @@ -27,6 +28,7 @@ export const TabManager = ({ direction = 'rtl', tabOwner, tabPosition, + children, }: TabManagerProps) => { const [activeTab, setActiveTab] = useState(defaultTab || tabs[0]?.value || '') const contentRef = useRef(null) @@ -69,28 +71,34 @@ export const TabManager = ({ ? 'shrink-0 md:overflow-y-auto w-full' : 'md:flex-col md:w-48 shrink-0 md:overflow-y-auto' return ( -
-
- {tabs.map(({ label, value, icon, isNew }) => ( - - ))} -
{' '} +
+ +
- - +
+ + +
+ + setUpdateModalOpen(false)} diff --git a/src/layouts/widgets-settings/widget-settings-modal.tsx b/src/layouts/widgets-settings/widget-settings-modal.tsx index 3492804d..6453be6a 100644 --- a/src/layouts/widgets-settings/widget-settings-modal.tsx +++ b/src/layouts/widgets-settings/widget-settings-modal.tsx @@ -89,16 +89,17 @@ export function WidgetSettingsModal({ tabOwner="widgets-settings" defaultTab={selectedTab || WidgetTabKeys.widget_management} direction="rtl" - /> - + + ) }