diff --git a/app/(unauth)/cal_sync.tsx b/app/(unauth)/cal_sync.tsx new file mode 100644 index 0000000..0e9f15b --- /dev/null +++ b/app/(unauth)/cal_sync.tsx @@ -0,0 +1,246 @@ +import {SafeAreaView} from "react-native-safe-area-context"; +import {Button, Text, View} from "react-native-ui-lib"; +import React from "react"; +import {useCalSync} from "@/hooks/useCalSync"; +import GoogleIcon from "@/assets/svgs/GoogleIcon"; +import AppleIcon from "@/assets/svgs/AppleIcon"; +import OutlookIcon from "@/assets/svgs/OutlookIcon"; +import {useAuthContext} from "@/contexts/AuthContext"; +import {StyleSheet} from "react-native"; + +export default function Screen() { + const {profileData, setRedirectOverride} = useAuthContext() + const {handleStartGoogleSignIn, handleAppleSignIn, handleMicrosoftSignIn} = useCalSync() + + const hasSomeCalendarsSynced = + !!profileData?.appleAccounts || !!profileData?.microsoftAccounts || !!profileData?.googleAccounts + + return ( + + + + + Let's get started! + + + Add your calendar below to sync events to your Cally calendar + + + + + {!profileData?.googleAccounts && ( +