This commit is contained in:
Tanuja Pansare 2026-07-10 12:32:57 +05:30
parent 4633e16094
commit 248caa7029
2 changed files with 10 additions and 17 deletions

View File

@ -1,9 +1,5 @@
import React, { useCallback, useEffect, useState } from "react"; import React, { useCallback, useEffect, useState } from "react";
<<<<<<< HEAD import { BarChart2, CalendarDays, Check, FileText, Globe, Link2, Plus, ShieldCheck, Tag, Ticket, Trophy, Upload } from "lucide-react";
import { BarChart2, CalendarDays, FileText, Plus, ShieldCheck, Tag, Ticket, Trophy, Upload } from "lucide-react";
=======
import { BarChart2, CalendarDays, Check, FileText, Globe, Link2, Plus, ShieldCheck, Tag, Ticket, Trophy } from "lucide-react";
>>>>>>> aed52029c61eaa3a9376202a3d34d546a6f56b28
import { useBreakpoint } from "../../hooks/useBreakpoint"; import { useBreakpoint } from "../../hooks/useBreakpoint";
import { useAppNav } from "../../contexts/AppNavContext"; import { useAppNav } from "../../contexts/AppNavContext";
import { eventsApi } from "../../../services/api/events"; import { eventsApi } from "../../../services/api/events";
@ -1088,19 +1084,19 @@ export function EventHomeModules() {
/> />
) : null} ) : null}
<<<<<<< HEAD
{showDocumentsPanel && selectedEventId ? (
<EventDocumentsPanel
eventId={selectedEventId}
eventName={eventName ?? undefined}
onClose={() => setShowDocumentsPanel(false)}
=======
{staticMicrositeOpen && selectedEventId ? ( {staticMicrositeOpen && selectedEventId ? (
<ManageStaticMicrositePanel <ManageStaticMicrositePanel
eventId={selectedEventId} eventId={selectedEventId}
onClose={() => setStaticMicrositeOpen(false)} onClose={() => setStaticMicrositeOpen(false)}
onSaved={() => void loadStaticMicrositeMeta()} onSaved={() => void loadStaticMicrositeMeta()}
>>>>>>> aed52029c61eaa3a9376202a3d34d546a6f56b28 />
) : null}
{showDocumentsPanel && selectedEventId ? (
<EventDocumentsPanel
eventId={selectedEventId}
eventName={eventName ?? undefined}
onClose={() => setShowDocumentsPanel(false)}
/> />
) : null} ) : null}
</> </>

View File

@ -29,16 +29,13 @@ function participantEmail(
return p.email?.trim() || "—"; return p.email?.trim() || "—";
} }
<<<<<<< HEAD
function participantName(p: FormSubmissionRecord["participant"]): string { function participantName(p: FormSubmissionRecord["participant"]): string {
if (!p || typeof p === "string") return "there"; if (!p || typeof p === "string") return "there";
return [p.firstName, p.lastName].filter(Boolean).join(" ").trim() || "there"; return [p.firstName, p.lastName].filter(Boolean).join(" ").trim() || "there";}
=======
function eventNameFromForm(form: Form | null): string { function eventNameFromForm(form: Form | null): string {
const ev = form?.event; const ev = form?.event;
if (ev && typeof ev === "object" && ev.name?.trim()) return ev.name.trim(); if (ev && typeof ev === "object" && ev.name?.trim()) return ev.name.trim();
return "Event"; return "Event";
>>>>>>> aed52029c61eaa3a9376202a3d34d546a6f56b28
} }
type Props = { type Props = {