From e49129d9ba27d5c5fa3a9d0507f3c4f7a67be085 Mon Sep 17 00:00:00 2001 From: pabloVoorvaart Date: Mon, 16 Oct 2023 20:38:25 +0900 Subject: [PATCH] prettier --- .../[event]/(eventHome)/page.tsx | 36 +++++++++---------- .../schedule/components/DateSelect.tsx | 5 +-- .../[event]/(eventHome)/utils.ts | 2 +- components/Layout/Navbar.tsx | 1 - components/Layout/NavbarTop.tsx | 2 +- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/app/[organization]/[event]/(eventHome)/page.tsx b/app/[organization]/[event]/(eventHome)/page.tsx index c516e05b6..e76ac18f9 100644 --- a/app/[organization]/[event]/(eventHome)/page.tsx +++ b/app/[organization]/[event]/(eventHome)/page.tsx @@ -32,24 +32,24 @@ const EventHome = async ({ params }: { params: Params }) => {
-
-
-

{event.name}

- - add this event to your calendar - -
-

{event.description}

-
- - - - {/* */} -
+
+
+

{event.name}

+ + add this event to your calendar + +
+

{event.description}

+
+ + + + {/* */} +
diff --git a/app/[organization]/[event]/(eventHome)/schedule/components/DateSelect.tsx b/app/[organization]/[event]/(eventHome)/schedule/components/DateSelect.tsx index 04fd2dbc9..f3fba782f 100644 --- a/app/[organization]/[event]/(eventHome)/schedule/components/DateSelect.tsx +++ b/app/[organization]/[event]/(eventHome)/schedule/components/DateSelect.tsx @@ -12,7 +12,6 @@ const DateSelect = ({ dates }: { dates: number[] }) => { setDate(numericValue) } - return (
{isMobile ? ( @@ -26,7 +25,9 @@ const DateSelect = ({ dates }: { dates: number[] }) => { ) : ( dates.map((dateNum, index) => (
setDate(dateNum)} key={index}> {new Date(dateNum).toDateString().slice(0, 10)} diff --git a/app/[organization]/[event]/(eventHome)/utils.ts b/app/[organization]/[event]/(eventHome)/utils.ts index fcc548fb6..05452f587 100644 --- a/app/[organization]/[event]/(eventHome)/utils.ts +++ b/app/[organization]/[event]/(eventHome)/utils.ts @@ -11,7 +11,7 @@ export const CELL_HEIGHT = 6 export const sessionsSchedulePosition = (sessions: ISession[]) => { if (sessions.length === 0) { - return 0 + return 0 } const min = Math.min( diff --git a/components/Layout/Navbar.tsx b/components/Layout/Navbar.tsx index 42b4a55c9..96e7f3a4c 100644 --- a/components/Layout/Navbar.tsx +++ b/components/Layout/Navbar.tsx @@ -75,7 +75,6 @@ export default function Navbar({ setLogo('/events/' + event.logo) }, [event]) - if (archiveMode) { return <> } diff --git a/components/Layout/NavbarTop.tsx b/components/Layout/NavbarTop.tsx index fb19f4baa..eee961777 100644 --- a/components/Layout/NavbarTop.tsx +++ b/components/Layout/NavbarTop.tsx @@ -16,7 +16,7 @@ export default function Navbar() {
- + Logo