From 187f52bbe038d40eab92472d568f2d727fb54af8 Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Fri, 14 Mar 2025 01:33:57 +0100 Subject: [PATCH] Update image URL handling and edit link in Event Themes Replaced direct `preview_image_url` usage with `getServerFileUrl` for consistent file URL handling. Updated the "Edit Theme" button to navigate to the `/edit` path for improved routing clarity. --- frontend/src/app/(main)/dashboard/event-themes/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/(main)/dashboard/event-themes/page.tsx b/frontend/src/app/(main)/dashboard/event-themes/page.tsx index 64195af..bc59740 100644 --- a/frontend/src/app/(main)/dashboard/event-themes/page.tsx +++ b/frontend/src/app/(main)/dashboard/event-themes/page.tsx @@ -16,6 +16,7 @@ import Image from "next/image"; import Link from "next/link"; import { Loader2Icon, PaletteIcon } from "lucide-react"; import { useEventThemes } from "@/context/event-theme-context"; +import { getServerFileUrl } from "@/lib/utils"; export default function EventThemesPage() { // const { data: themes, isLoading } = useQuery({ @@ -69,7 +70,7 @@ export default function EventThemesPage() { {theme.preview_image_url ? ( {`${theme.name}