mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-28 23:03:41 +03:00
[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:
parent
1da64c7715
commit
8d90c60ada
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user