diff --git a/web/sidebar/app-switcher.react.js b/web/sidebar/app-switcher.react.js --- a/web/sidebar/app-switcher.react.js +++ b/web/sidebar/app-switcher.react.js @@ -32,6 +32,7 @@ ); const boundUnreadCount = useSelector(unreadCount); + const isCalendarEnabled = useSelector(state => state.enabledApps.calendar); React.useEffect(() => { document.title = getTitle(boundUnreadCount); @@ -100,6 +101,20 @@ [css['current-tab']]: navInfo.tab === 'apps', }); + const calendarLink = React.useMemo(() => { + if (!isCalendarEnabled) { + return null; + } + return ( +
  • +

    + + Calendar +

    +
  • + ); + }, [calendarNavClasses, isCalendarEnabled, onClickCalendar]); + return (