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