Skip to content

Commit

Permalink
fix: component order
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Feb 20, 2024
1 parent 6dffd14 commit a44b093
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions components/Containers/Sidebar/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
items-start
gap-8
overflow-auto
overflow-x-hidden
border-r
border-r-neutral-200
bg-white
Expand Down
16 changes: 8 additions & 8 deletions components/Containers/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ const SideBar: FC<SidebarProps> = ({ groups }) => {

return (
<aside className={styles.wrapper}>
{groups.map(({ groupName, items }) => (
<SidebarGroup
key={groupName.toString()}
groupName={groupName}
items={items}
/>
))}

{selectItems.length > 0 && (
<WithRouterSelect
label={t('components.common.sidebar.title')}
values={selectItems}
defaultValue={currentItem?.value}
/>
)}

{groups.map(({ groupName, items }) => (
<SidebarGroup
key={groupName.toString()}
groupName={groupName}
items={items}
/>
))}
</aside>
);
};
Expand Down

0 comments on commit a44b093

Please sign in to comment.