diff --git a/src/app/(role_organizer)/myconference/[conferenceId]/page.tsx b/src/app/(role_organizer)/myconference/[conferenceId]/page.tsx index 1970106..cc923b0 100644 --- a/src/app/(role_organizer)/myconference/[conferenceId]/page.tsx +++ b/src/app/(role_organizer)/myconference/[conferenceId]/page.tsx @@ -4,12 +4,13 @@ import Logo from "@/assets/home/laptop.jpg"; import { Box, BoxWithImage } from "@/components/common/Box/Box"; import Image, { StaticImageData } from "next/image"; import { useQuery } from "react-query"; -import { getConferenceDetailsWithRoleFiltering } from "@/hooks/conference"; +import { + GetConferenceDetailsWithRoleFilteringData, + getConferenceDetailsWithRoleFiltering, +} from "@/hooks/conference"; import Error500 from "@/components/common/Error/Error500"; -import { GoCalendar } from "react-icons/go"; -import { FaChevronRight, FaRegClock } from "react-icons/fa"; +import { FaChevronRight, FaRegCalendarCheck } from "react-icons/fa"; import { IoMdPin } from "react-icons/io"; -import { FaRegCalendarCheck } from "react-icons/fa"; import { FaRegCalendarXmark } from "react-icons/fa6"; import Link from "next/link"; @@ -31,54 +32,16 @@ export default function MyConferencePage({ return ( - {conferenceIdData && typeof conferenceIdData !== "string" ? ( + {!isLoading && + conferenceIdData && + typeof conferenceIdData !== "string" ? ( <> -
-

{conferenceIdData.name}

-
-
- -

- {conferenceIdData.startDateTime.split("T")[0]}{" "} - {conferenceIdData.startDateTime - .split("T")[1] - .split(":") - .slice(0, 2) - .join(":")} -

-
-
- -

- {conferenceIdData.endDateTime.split("T")[0]}{" "} - {conferenceIdData.endDateTime - .split("T")[1] - .split(":") - .slice(0, 2) - .join(":")} -

-
-
-
-
- -

- {conferenceIdData.location.name} -

-
- - Zobacz lokalizację na mapie - -
-
+

{conferenceIdData.name}: @@ -99,28 +62,55 @@ export default function MyConferencePage({

Prowadzący

- +
+ +

Wykłady

+

Uczestnicy

- - - - - - + + + + + +
-

Partnerzy

+

Zdjęcia

- + {""}
- ) : null} + ) : ( +

Trwa ładowanie danych...

+ )} ); } @@ -152,3 +142,51 @@ function People({

); } + +function MyConferencePageImageBox({ + conferenceIdData, +}: { + conferenceIdData: GetConferenceDetailsWithRoleFilteringData; +}) { + return ( +
+

{conferenceIdData.name}

+
+
+ +

+ {conferenceIdData.startDateTime.split("T")[0]}{" "} + {conferenceIdData.startDateTime + .split("T")[1] + .split(":") + .slice(0, 2) + .join(":")} +

+
+
+ +

+ {conferenceIdData.endDateTime.split("T")[0]}{" "} + {conferenceIdData.endDateTime + .split("T")[1] + .split(":") + .slice(0, 2) + .join(":")} +

+
+
+
+
+ +

{conferenceIdData.location.name}

+
+ + Zobacz lokalizację na mapie + +
+
+ ); +}