Feature: Implement iCal integration for calendar, improve styling (#2376)

* Feature: Implement iCal integration, improve calendar/agenda styling

* Delete calendar.jsx

* Calendar proxy handler

* code style

* Add some basic error handling

---------

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Denis Papecandshamoon authored and GitHub committed 2023-11-25 08:17:25 -08:00
1 parent 518ed7fc4e
commit 95d66707f5
20 files changed
+251 -115

No files matched your search

+2 -4
View File
@@ -1,12 +1,10 @@
import { DateTime } from "luxon";
import { useContext, useEffect } from "react";
import { useEffect } from "react";
import useWidgetAPI from "../../../utils/proxy/use-widget-api";
import { EventContext } from "../../../utils/contexts/calendar";
import Error from "../../../components/services/widget/error";
export default function Integration({ config, params, hideErrors = false }) {
const { setEvents } = useContext(EventContext);
export default function Integration({ config, params, setEvents, hideErrors = false }) {
const { data: lidarrData, error: lidarrError } = useWidgetAPI(config, "calendar", {
...params,
includeArtist: "false",