From bdd0941f043efbf220e28dc787c60b48937ec2cb Mon Sep 17 00:00:00 2001 From: chark1es Date: Mon, 17 Feb 2025 13:52:21 -0800 Subject: [PATCH] update imports --- src/components/dashboard/Officer_EventManagement.astro | 6 +++--- .../dashboard/Officer_EventManagement/EventEditor.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/dashboard/Officer_EventManagement.astro b/src/components/dashboard/Officer_EventManagement.astro index 01972d8..4ad3e43 100644 --- a/src/components/dashboard/Officer_EventManagement.astro +++ b/src/components/dashboard/Officer_EventManagement.astro @@ -3,7 +3,7 @@ import { Icon } from "astro-icon/components"; import { Get } from "../../scripts/pocketbase/Get"; import { Authentication } from "../../scripts/pocketbase/Authentication"; import EventEditor from "./Officer_EventManagement/EventEditor"; -import FilePreview from "./Officer_EventManagement/FilePreview"; +import FilePreview from "./universal/FilePreview"; import Attendees from "./Officer_EventManagement/Attendees"; // Get instances @@ -610,7 +610,7 @@ const currentPage = eventResponse.page; // Reset cache timestamp to force refresh window.lastCacheUpdate = 0; // Refresh events list - window.fetchEvents(); + window.fetchEvents?.(); }} /> @@ -725,7 +725,7 @@ const currentPage = eventResponse.page; import { Update } from "../../scripts/pocketbase/Update"; import { FileManager } from "../../scripts/pocketbase/FileManager"; import { SendLog } from "../../scripts/pocketbase/SendLog"; - import FilePreview from "./Officer_EventManagement/FilePreview"; + import FilePreview from "./universal/FilePreview"; // Add file storage const selectedFileStorage = new Map(); diff --git a/src/components/dashboard/Officer_EventManagement/EventEditor.tsx b/src/components/dashboard/Officer_EventManagement/EventEditor.tsx index e9a63f6..1c0340d 100644 --- a/src/components/dashboard/Officer_EventManagement/EventEditor.tsx +++ b/src/components/dashboard/Officer_EventManagement/EventEditor.tsx @@ -4,7 +4,7 @@ import { Authentication } from "../../../scripts/pocketbase/Authentication"; import { Update } from "../../../scripts/pocketbase/Update"; import { FileManager } from "../../../scripts/pocketbase/FileManager"; import { SendLog } from "../../../scripts/pocketbase/SendLog"; -import FilePreview from "./FilePreview"; +import FilePreview from "../universal/FilePreview"; // Extend Window interface declare global {