Skip to content

Commit 7123e89

Browse files
committed
disable apple calendar just for now
1 parent 01b67c0 commit 7123e89

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

apps/desktop/src/components/settings/calendar/configure/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ export function ConfigureProviders() {
1616
return (
1717
<Accordion type="single" collapsible className="space-y-3">
1818
{visibleProviders.map((provider) =>
19-
provider.id === "apple" ? (
20-
<AppleCalendarProviderCard key={provider.id} />
21-
) : (
19+
provider.disabled ? (
2220
<DisabledProviderCard key={provider.id} config={provider} />
23-
),
21+
) : provider.id === "apple" ? (
22+
<AppleCalendarProviderCard key={provider.id} />
23+
) : null,
2424
)}
2525
</Accordion>
2626
);

apps/desktop/src/components/settings/calendar/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { ConfigureProviders } from "./configure";
2-
import { CalendarStatus } from "./status";
32

43
export function SettingsCalendar() {
54
return (
65
<div className="space-y-6">
7-
<Container title="Event Fetching Status">
6+
{/* <Container title="Event Fetching Status">
87
<CalendarStatus />
9-
</Container>
8+
</Container> */}
109

1110
<Container title="Configure Providers">
1211
<ConfigureProviders />

apps/desktop/src/components/settings/calendar/shared.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ export type CalendarProviderId = (typeof _PROVIDERS)[number]["id"];
1717

1818
const _PROVIDERS = [
1919
{
20-
disabled: false,
20+
disabled: true,
2121
id: "apple",
2222
displayName: "Apple",
23-
badge: null,
23+
badge: "Almost Done, really",
2424
icon: <Icon icon="logos:apple" width={20} height={20} />,
2525
platform: "macos",
2626
docsPath: "/docs/calendar/apple",
@@ -29,7 +29,7 @@ const _PROVIDERS = [
2929
disabled: true,
3030
id: "google",
3131
displayName: "Google",
32-
badge: "Coming Soon",
32+
badge: "After Apple Calendar",
3333
icon: <Icon icon="logos:google-calendar" width={20} height={20} />,
3434
platform: "all",
3535
docsPath: "/docs/calendar/gcal",
@@ -38,7 +38,7 @@ const _PROVIDERS = [
3838
disabled: true,
3939
id: "outlook",
4040
displayName: "Outlook",
41-
badge: "Coming Soon",
41+
badge: "After Apple Calendar",
4242
icon: <OutlookIcon size={20} />,
4343
platform: "all",
4444
docsPath: "/docs/calendar/outlook",

apps/desktop/src/components/task-manager.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ export function TaskManager() {
1414
const queries = main.UI.useQueries(main.STORE_ID);
1515

1616
useSetTask(CALENDAR_SYNC_TASK_ID, async () => {
17-
if (store && queries) {
17+
// TODO: Not ready yet
18+
if (false) {
1819
await syncCalendarEvents(
1920
store as main.Store,
2021
queries as Queries<main.Schemas>,

0 commit comments

Comments
 (0)