Skip to content

Commit

Permalink
fix: Always display folder link to avoid blink
Browse files Browse the repository at this point in the history
  • Loading branch information
zatteo committed Nov 6, 2024
1 parent d7dcfdc commit 6b26d84
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions src/components/AppLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,23 +108,21 @@ const AppLayout = () => {
<NavText>{t('Sidebar.presence')}</NavText>
</NavLink>
</NavItem>
{currentAccountFolderLink && (
<NavItem>
<NavLink href={currentAccountFolderLink} target="_blank">
<NavIcon icon={FolderIcon} />
<NavText>{t('Sidebar.documents')}</NavText>
{!isMobile && (
<Icon
icon={OpenappIcon}
style={{
marginLeft: 'auto',
marginRight: 8
}}
/>
)}
</NavLink>
</NavItem>
)}
<NavItem>
<NavLink href={currentAccountFolderLink} target="_blank">
<NavIcon icon={FolderIcon} />
<NavText>{t('Sidebar.documents')}</NavText>
{!isMobile && (
<Icon
icon={OpenappIcon}
style={{
marginLeft: 'auto',
marginRight: 8
}}
/>
)}
</NavLink>
</NavItem>
</Nav>
</Sidebar>
<BarComponent />
Expand Down

0 comments on commit 6b26d84

Please sign in to comment.