mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 00:24:53 +00:00
- Fixed wrong method being called when fetching microsoft events
This commit is contained in:
@ -83,7 +83,7 @@ const CalendarSettingsPage = (props: {
|
|||||||
startDateTime.toISOString().slice(0, -5) + "Z",
|
startDateTime.toISOString().slice(0, -5) + "Z",
|
||||||
endDateTime.toISOString().slice(0, -5) + "Z",
|
endDateTime.toISOString().slice(0, -5) + "Z",
|
||||||
).then((response) => {
|
).then((response) => {
|
||||||
response?.forEach((item) => createEvent(item));
|
response?.forEach((item) => saveData(item));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -207,6 +207,7 @@ const CalendarSettingsPage = (props: {
|
|||||||
width={40}
|
width={40}
|
||||||
height={40}
|
height={40}
|
||||||
style={{ borderRadius: 50 }}
|
style={{ borderRadius: 50 }}
|
||||||
|
marginR-10
|
||||||
centerV
|
centerV
|
||||||
centerH
|
centerH
|
||||||
>
|
>
|
||||||
@ -226,6 +227,7 @@ const CalendarSettingsPage = (props: {
|
|||||||
width={40}
|
width={40}
|
||||||
height={40}
|
height={40}
|
||||||
style={{ borderRadius: 50 }}
|
style={{ borderRadius: 50 }}
|
||||||
|
marginR-10
|
||||||
centerV
|
centerV
|
||||||
centerH
|
centerH
|
||||||
>
|
>
|
||||||
@ -242,6 +244,26 @@ const CalendarSettingsPage = (props: {
|
|||||||
<View style={styles.card}>
|
<View style={styles.card}>
|
||||||
<Text text70>Calendars</Text>
|
<Text text70>Calendars</Text>
|
||||||
<View style={{ marginTop: 20 }}>
|
<View style={{ marginTop: 20 }}>
|
||||||
|
<Button
|
||||||
|
label={"Sync Outlook"}
|
||||||
|
iconSource={() => (
|
||||||
|
<View
|
||||||
|
backgroundColor="#ededed"
|
||||||
|
width={40}
|
||||||
|
height={40}
|
||||||
|
style={{ borderRadius: 50 }}
|
||||||
|
marginR-10
|
||||||
|
centerV
|
||||||
|
centerH
|
||||||
|
>
|
||||||
|
<Ionicons name="logo-microsoft" size={22} color="#979797" />
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
|
backgroundColor="white"
|
||||||
|
color="#464039"
|
||||||
|
borderRadius={15}
|
||||||
|
onPress={fetchAndSaveMicrosoftEvents}
|
||||||
|
/>
|
||||||
{profileData?.googleToken !== undefined && (
|
{profileData?.googleToken !== undefined && (
|
||||||
<Button
|
<Button
|
||||||
label={"Sync Google"}
|
label={"Sync Google"}
|
||||||
@ -264,28 +286,6 @@ const CalendarSettingsPage = (props: {
|
|||||||
onPress={fetchAndSaveGoogleEvents}
|
onPress={fetchAndSaveGoogleEvents}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{profileData?.microsoftToken !== undefined && (
|
|
||||||
<Button
|
|
||||||
label={"Sync Outlook"}
|
|
||||||
iconSource={() => (
|
|
||||||
<View
|
|
||||||
backgroundColor="#ededed"
|
|
||||||
width={40}
|
|
||||||
height={40}
|
|
||||||
style={{ borderRadius: 50 }}
|
|
||||||
marginR-10
|
|
||||||
centerV
|
|
||||||
centerH
|
|
||||||
>
|
|
||||||
<Ionicons name="logo-microsoft" size={22} color="#979797" />
|
|
||||||
</View>
|
|
||||||
)}
|
|
||||||
backgroundColor="white"
|
|
||||||
color="#464039"
|
|
||||||
borderRadius={15}
|
|
||||||
onPress={fetchAndSaveMicrosoftEvents}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
Reference in New Issue
Block a user