- {printDateHeader && (
-
-
- {event.date.toLocaleDateString()} {getTime(differenceInDays)}
-
-
- )}
-
-
- setEventToEdit({
- ...event,
- date: event.date.toISOString(),
- // TODO: remove this if later other event types than tournament are allowed
- // currently in the validator we accept the properties as if you can only submit
- // tournaments but database is prepared to accept other kind of events
- // this makes TS freak out a bit
- discordInviteUrl: event.discordInviteUrl!,
- tags: event.tags as any,
- format: event.format as any,
- })
- }
- />
-
-
- );
- })}
+ return (
+
+ {printDateHeader && (
+
+
+ {event.date.toLocaleDateString()}{" "}
+ {getTime(differenceInDays)}
+
+
+ )}
+
+
+ setEventToEdit({
+ ...event,
+ date: event.date.toISOString(),
+ // TODO: remove this if later other event types than tournament are allowed
+ // currently in the validator we accept the properties as if you can only submit
+ // tournaments but database is prepared to accept other kind of events
+ // this makes TS freak out a bit
+ discordInviteUrl: event.discordInviteUrl!,
+ tags: event.tags as any,
+ format: event.format as any,
+ })
+ }
+ />
+
+
+ );
+ })}