From 8bd8e60d4af023812815b039da93e49eee700d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 20 Aug 2023 14:46:01 +0200 Subject: [PATCH] Add keys to fragments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../features/event/event-information.tsx | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/app/soapbox/features/event/event-information.tsx b/app/soapbox/features/event/event-information.tsx index fe5380d1cc..557c3abfa8 100644 --- a/app/soapbox/features/event/event-information.tsx +++ b/app/soapbox/features/event/event-information.tsx @@ -62,27 +62,38 @@ const EventInformation: React.FC = ({ params }) => { if (!event.location) return null; const text = [ - <>{event.location.get('name')}, + + {event.location.get('name')} + , ]; if (event.location.get('street')?.trim()) { - text.push (<>
{event.location.get('street')}); + text.push ( + +
{event.location.get('street')} +
, + ); } const address = [event.location.get('postalCode'), event.location.get('locality'), event.location.get('country')].filter(text => text).join(', '); if (address) { - text.push(<>
{address}); + text.push( + +
+ {address} +
, + ); } if (tileServer && event.location.get('latitude')) { text.push( - <> +
- , +
, ); }