mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-10 03:56:37 +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>
|
</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>
|
||||||
{showDrillDown && (
|
<div>
|
||||||
|
{showDrillDown && (
|
||||||
|
|
||||||
|
|
||||||
{/* ... other UI elements ... */}
|
{/* ... other UI elements ... */}
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Email</th>
|
<th>Email</th>
|
||||||
<th>Count</th>
|
<th>Count</th>
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{Object.entries(userDetails).map(([email, count]) => (
|
|
||||||
<tr key={email}>
|
|
||||||
<td>{email}</td>
|
|
||||||
<td>{count}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
</thead>
|
||||||
</tbody>
|
<tbody>
|
||||||
</table>
|
{Object.entries(userDetails).map(([email, count]) => (
|
||||||
)}
|
<tr key={email}>
|
||||||
|
<td>{email}</td>
|
||||||
|
<td>{count}</td>
|
||||||
|
</tr>
|
||||||
|
))}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
)}
|
||||||
<button className={styles.closeButton} onClick={onClose}>
|
<button className={styles.closeButton} onClick={onClose}>
|
||||||
Close
|
Close
|
||||||
</button>
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user