This commit is contained in:
DirkSchlossmacher 2023-11-14 09:42:26 +01:00
parent 45ec58b8ea
commit 68706346b3

View File

@ -46,12 +46,9 @@ const UsageStats: React.FC<{ onClose: () => void }> = ({ onClose }) => {
</select> </select>
<p>Number of events: {signInCount}</p> <p>Number of events: {signInCount}</p>
<button onClick={handleDrillDown}>Drill-down</button> <button onClick={handleDrillDown}>Drill-down</button>
{/* Wrap the conditional block and the button with a div or fragment */}
<div> <div>
{showDrillDown && ( {showDrillDown && (
{/* ... other UI elements ... */}
<table> <table>
<thead> <thead>
<tr> <tr>
@ -76,6 +73,7 @@ const UsageStats: React.FC<{ onClose: () => void }> = ({ onClose }) => {
</div> </div>
</div> </div>
); );
}; };
export default UsageStats; export default UsageStats;