Render calendar tab only if it is enabled - like in mobile app. By default it is enabled and the setting is not persisted after page refresh yet.
Details
Details
After introducing apps page (next diff), run web app and switch the calendar in Apps page. The navigation link to calendar should appear only if calendar enabled.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
web/sidebar/app-switcher.react.js | ||
---|---|---|
116 ↗ | (On Diff #9879) | Is classNames function memoized? If it isn't, then calendarNavClasses value will be different in every render and this whole memoization is completely useless. To fix the issue we should either remove React.useMemo and not memoize this component or move calendarNavClasses inside the memo. It looks like the component is really simple so memoizing it is not necessary, but it's up to you. |
web/sidebar/app-switcher.react.js | ||
---|---|---|
102–107 ↗ | (On Diff #9891) | We don't need to define calendarNavClasses when isCalendarEnabled is false. |