Skip to content

Commit

Permalink
feat: move up board icon in primary bar
Browse files Browse the repository at this point in the history
refs: SHELL-26 (#221)
  • Loading branch information
CataldoMazzilli authored Mar 10, 2023
1 parent 619d601 commit 5504915
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/shell/shell-primary-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ const ToggleBoardIcon: FC = () => {
const { minimized, boards } = useBoardStore();
if (isEmpty(boards)) return null;
return (
<IconButton
iconColor="primary"
icon={minimized ? 'BoardOpen' : 'BoardCollapse'}
onClick={minimized ? reopenBoards : minimizeBoards}
size="large"
/>
<Container width={'3rem'} height={'3rem'}>
<IconButton
iconColor="primary"
icon={minimized ? 'BoardOpen' : 'BoardCollapse'}
onClick={minimized ? reopenBoards : minimizeBoards}
size="large"
/>
</Container>
);
};

Expand Down Expand Up @@ -150,6 +152,7 @@ const ShellPrimaryBarComponent: FC<{ activeRoute: AppRoute }> = ({ activeRoute }
/>
) : null
)}
<ToggleBoardIcon />
</Row>
<Row
mainAlignment="flex-end"
Expand All @@ -163,7 +166,6 @@ const ShellPrimaryBarComponent: FC<{ activeRoute: AppRoute }> = ({ activeRoute }
{accessories.map((v) => (
<PrimaryBarAccessoryElement view={v} key={v.id} />
))}
<ToggleBoardIcon />
</Row>
</ContainerWithDivider>
);
Expand Down

0 comments on commit 5504915

Please sign in to comment.