Skip to content

Commit

Permalink
Updates property names
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs committed Oct 25, 2023
1 parent 7dd89d7 commit 0f876ad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
24 changes: 12 additions & 12 deletions src/features/sidebar/view/base/responsive/SidebarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -27,21 +27,21 @@ const SidebarContainer = ({
offsetContent={isDrawerOpen}
onOpen={() => onToggleDrawerOpen(true)}
>
{secondaryHeader}
{header}
</SecondaryHeader>
<Drawer
width={drawerWidth}
isOpen={isDrawerOpen}
header={primaryHeader}
header={sidebarHeader}
onClose={() => onToggleDrawerOpen(false)}
>
{primary}
{sidebar}
</Drawer>
<SecondaryContent
drawerWidth={drawerWidth}
offsetContent={isDrawerOpen}
>
{secondary}
{children}
</SecondaryContent>
</Box>
)
Expand Down
11 changes: 6 additions & 5 deletions src/features/sidebar/view/client/SidebarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,22 @@ const SidebarContainer = ({
<ResponsiveSidebarContainer
isDrawerOpen={open}
onToggleDrawerOpen={setOpen}
primaryHeader={
sidebarHeader={
<SidebarHeader/>
}
primary={
sidebar={
<Sidebar>
{sidebar}
</Sidebar>
}
secondaryHeader={trailingToolbar &&
header={trailingToolbar &&
<TrailingToolbar>
{trailingToolbar}
</TrailingToolbar>
}
secondary={children}
/>
>
{children}
</ResponsiveSidebarContainer>
)
}

Expand Down

0 comments on commit 0f876ad

Please sign in to comment.