[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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,6 +24,7 @@ import {
} from '~/generated-metadata/graphql'; } from '~/generated-metadata/graphql';
export const SettingsAccountsCalendars = () => { export const SettingsAccountsCalendars = () => {
const calendarSettingsEnabled = false;
const currentWorkspaceMember = useRecoilValue(currentWorkspaceMemberState); const currentWorkspaceMember = useRecoilValue(currentWorkspaceMemberState);
const { records: accounts } = useFindManyRecords<ConnectedAccount>({ const { records: accounts } = useFindManyRecords<ConnectedAccount>({
objectNameSingular: CoreObjectNameSingular.ConnectedAccount, objectNameSingular: CoreObjectNameSingular.ConnectedAccount,
@ -101,7 +102,7 @@ export const SettingsAccountsCalendars = () => {
/> />
<SettingsAccountsCalendarChannelsListCard /> <SettingsAccountsCalendarChannelsListCard />
</Section> </Section>
{!!calendarChannels.length && ( {!!calendarChannels.length && calendarSettingsEnabled && (
<> <>
<Section> <Section>
<H2Title <H2Title