mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-09 03:26:38 +08:00
div in usagestats
This commit is contained in:
parent
595cf6bf46
commit
4bc8c73d66
@ -46,31 +46,33 @@ const UsageStats: React.FC<{ onClose: () => void }> = ({ onClose }) => {
|
||||
</select>
|
||||
<p>Number of events: {signInCount}</p>
|
||||
<button onClick={handleDrillDown}>Drill-down</button>
|
||||
{showDrillDown && (
|
||||
|
||||
<div>
|
||||
{showDrillDown && (
|
||||
|
||||
{/* ... other UI elements ... */}
|
||||
|
||||
{/* ... other UI elements ... */}
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Email</th>
|
||||
<th>Count</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{Object.entries(userDetails).map(([email, count]) => (
|
||||
<tr key={email}>
|
||||
<td>{email}</td>
|
||||
<td>{count}</td>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Email</th>
|
||||
<th>Count</th>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
)}
|
||||
</thead>
|
||||
<tbody>
|
||||
{Object.entries(userDetails).map(([email, count]) => (
|
||||
<tr key={email}>
|
||||
<td>{email}</td>
|
||||
<td>{count}</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
)}
|
||||
<button className={styles.closeButton} onClick={onClose}>
|
||||
Close
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user