[calendar] hide calendar settings until implemented (#5252)

## 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
https://github.com/twentyhq/twenty/issues/5140
This commit is contained in:
Weiko
2024-05-02 15:47:43 +02:00
committed by GitHub
parent 1da64c7715
commit 8d90c60ada

View File

@ -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,
@ -101,7 +102,7 @@ export const SettingsAccountsCalendars = () => {
/>
<SettingsAccountsCalendarChannelsListCard />
</Section>
{!!calendarChannels.length && (
{!!calendarChannels.length && calendarSettingsEnabled && (
<>
<Section>
<H2Title