Skip to content

Commit

Permalink
[calendar] hide calendar settings until implemented (twentyhq#5252)
Browse files Browse the repository at this point in the history
## Context
Those settings are not implemented yet, we would like to move them to a
different page as well.
In the meantime, we are hiding them since we plan to launch calendar in
the next release and this won't be implemented before.

We will implement it in this
twentyhq#5140
  • Loading branch information
Weiko authored and i-am-chitti committed May 4, 2024
1 parent bb9a4b1 commit ceef884
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
} from '~/generated-metadata/graphql';

export const SettingsAccountsCalendars = () => {
const calendarSettingsEnabled = false;
const currentWorkspaceMember = useRecoilValue(currentWorkspaceMemberState);
const { records: accounts } = useFindManyRecords<ConnectedAccount>({
objectNameSingular: CoreObjectNameSingular.ConnectedAccount,
Expand Down Expand Up @@ -101,7 +102,7 @@ export const SettingsAccountsCalendars = () => {
/>
<SettingsAccountsCalendarChannelsListCard />
</Section>
{!!calendarChannels.length && (
{!!calendarChannels.length && calendarSettingsEnabled && (
<>
<Section>
<H2Title
Expand Down

0 comments on commit ceef884

Please sign in to comment.