From 0dd6163220e3155a690249813f8b7bc49d07b799 Mon Sep 17 00:00:00 2001 From: Vincent Tannos Date: Tue, 10 Dec 2024 01:15:28 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=92=EF=B8=8F=20Reformat=20Files=20for?= =?UTF-8?q?=20eventDetailsComponent=20Branch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/Button/Button.tsx | 16 +++++-------- frontend/src/Event/Event.tsx | 2 +- frontend/src/EventDetails/EventDetails.tsx | 4 +++- frontend/src/Keyword/Keyword.tsx | 26 ++++++++++++---------- frontend/src/ShareButton/ShareButton.tsx | 8 +++---- 5 files changed, 26 insertions(+), 30 deletions(-) diff --git a/frontend/src/Button/Button.tsx b/frontend/src/Button/Button.tsx index b29dd45..8bdb35f 100644 --- a/frontend/src/Button/Button.tsx +++ b/frontend/src/Button/Button.tsx @@ -18,22 +18,16 @@ type ButtonProps = { function Button(props: ButtonProps) { return ( - } + {props.type !== KeywordOptions.None && ( + + )} ); } diff --git a/frontend/src/ShareButton/ShareButton.tsx b/frontend/src/ShareButton/ShareButton.tsx index 6df77db..e560ea4 100644 --- a/frontend/src/ShareButton/ShareButton.tsx +++ b/frontend/src/ShareButton/ShareButton.tsx @@ -7,11 +7,9 @@ type ShareButtonProps = { function ShareButton(props: ShareButtonProps) { return ( - );