From 0f876ad5ae7645f9bd2e8a55d7905ad74e9213f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=B8vring?= Date: Wed, 25 Oct 2023 08:08:20 +0200 Subject: [PATCH] Updates property names --- .../view/base/responsive/SidebarContainer.tsx | 24 +++++++++---------- .../sidebar/view/client/SidebarContainer.tsx | 11 +++++---- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/src/features/sidebar/view/base/responsive/SidebarContainer.tsx b/src/features/sidebar/view/base/responsive/SidebarContainer.tsx index 1fd53242..14d1091f 100644 --- a/src/features/sidebar/view/base/responsive/SidebarContainer.tsx +++ b/src/features/sidebar/view/base/responsive/SidebarContainer.tsx @@ -7,17 +7,17 @@ import SecondaryContent from "./SecondaryContent" const SidebarContainer = ({ isDrawerOpen, onToggleDrawerOpen, - primaryHeader, - primary, - secondaryHeader, - secondary + sidebarHeader, + sidebar, + header, + children }: { isDrawerOpen: boolean onToggleDrawerOpen: (isDrawerOpen: boolean) => void - primaryHeader?: ReactNode - primary: ReactNode - secondaryHeader?: ReactNode - secondary: ReactNode + sidebarHeader?: ReactNode + sidebar: ReactNode + header?: ReactNode + children?: ReactNode }) => { const drawerWidth = 320 return ( @@ -27,21 +27,21 @@ const SidebarContainer = ({ offsetContent={isDrawerOpen} onOpen={() => onToggleDrawerOpen(true)} > - {secondaryHeader} + {header} onToggleDrawerOpen(false)} > - {primary} + {sidebar} - {secondary} + {children} ) diff --git a/src/features/sidebar/view/client/SidebarContainer.tsx b/src/features/sidebar/view/client/SidebarContainer.tsx index 8d27fb2a..9da62449 100644 --- a/src/features/sidebar/view/client/SidebarContainer.tsx +++ b/src/features/sidebar/view/client/SidebarContainer.tsx @@ -22,21 +22,22 @@ const SidebarContainer = ({ } - primary={ + sidebar={ {sidebar} } - secondaryHeader={trailingToolbar && + header={trailingToolbar && {trailingToolbar} } - secondary={children} - /> + > + {children} + ) }