Skip to content

Commit cb6be0f

Browse files
committed
link change
1 parent 0e970c3 commit cb6be0f

1 file changed

Lines changed: 20 additions & 21 deletions

File tree

src/cloud/components/Application.tsx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ import SidebarHeader from '../../design/components/organisms/Sidebar/atoms/Sideb
6262
import SidebarButtonList from '../../design/components/organisms/Sidebar/molecules/SidebarButtonList'
6363
import { getTeamLinkHref } from './Link/TeamLink'
6464
import WithPastille from '../../design/components/atoms/WithPastille'
65-
import SidebarButton from '../../design/components/organisms/Sidebar/atoms/SidebarButton'
6665
import CloudGlobalSearch from './CloudGlobalSearch'
6766
import { useCloudSidebarSpaces } from '../lib/hooks/sidebar/useCloudSidebarSpaces'
6867
import { trackEvent } from '../api/track'
@@ -404,6 +403,23 @@ const Application = ({
404403
},
405404
id: 'sidebar__button__members',
406405
},
406+
{
407+
label: 'Export your data',
408+
icon: (
409+
<WithPastille>
410+
<Icon size={16} path={mdiExclamationThick} />
411+
</WithPastille>
412+
),
413+
variant: 'transparent',
414+
labelClick: () => {
415+
return openModal(<ExportModal />, {
416+
showCloseIcon: true,
417+
width: 'large',
418+
})
419+
},
420+
id: 'sidebar__button__export',
421+
pastille: counts[team.id] ? counts[team.id] : undefined,
422+
},
407423
]}
408424
>
409425
{currentUserIsCoreMember && <NewDocButton team={team} />}
@@ -420,6 +436,7 @@ const Application = ({
420436
team,
421437
translate,
422438
showSearchScreen,
439+
openModal,
423440
])
424441

425442
const sidebarFooter = useMemo(() => {
@@ -448,28 +465,11 @@ const Application = ({
448465
id: 'sidebar__button__shared',
449466
},
450467
]}
451-
>
452-
<SidebarButton
453-
variant='subtle'
454-
icon={
455-
<WithPastille>
456-
<Icon size={16} path={mdiExclamationThick} />
457-
</WithPastille>
458-
}
459-
id='sidebar__button__promo'
460-
label={'Export your data'}
461-
labelClick={() => {
462-
return openModal(<ExportModal />, {
463-
showCloseIcon: true,
464-
width: 'large',
465-
})
466-
}}
467-
/>
468-
</SidebarButtonList>
468+
/>
469469
<SidebarSubscriptionCTA />
470470
</>
471471
)
472-
}, [team, translate, pathname, push, sendToElectron, openModal])
472+
}, [team, translate, pathname, push, sendToElectron])
473473

474474
return (
475475
<>
@@ -530,7 +530,6 @@ const Application = ({
530530
</>
531531
}
532532
/>
533-
534533
<AnnouncementAlert />
535534
<div
536535
id='application__anchor'

0 commit comments

Comments
 (0)