From 68706346b319c060242fdd6cf52cf247ad19baec Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Tue, 14 Nov 2023 09:42:26 +0100 Subject: [PATCH] div --- app/components/usage-stats/UsageStats.tsx | 66 +++++++++++------------ 1 file changed, 32 insertions(+), 34 deletions(-) diff --git a/app/components/usage-stats/UsageStats.tsx b/app/components/usage-stats/UsageStats.tsx index 38fb13944..e02fd9819 100644 --- a/app/components/usage-stats/UsageStats.tsx +++ b/app/components/usage-stats/UsageStats.tsx @@ -36,46 +36,44 @@ const UsageStats: React.FC<{ onClose: () => void }> = ({ onClose }) => { return (
-

Usage Stats

- -

Number of events: {signInCount}

- -
- {showDrillDown && ( - - - {/* ... other UI elements ... */} - - - - - - +

Usage Stats

+ +

Number of events: {signInCount}

+ + {/* Wrap the conditional block and the button with a div or fragment */} +
+ {showDrillDown && ( +
EmailCount
+ + + + + + + + {Object.entries(userDetails).map(([email, count]) => ( + + + - - - {Object.entries(userDetails).map(([email, count]) => ( - - - - - ))} - -
EmailCount
{email}{count}
{email}{count}
- )} + ))} + + + )} -
+
); + }; export default UsageStats; \ No newline at end of file