fix(users): отображение users_by_role в статистике

Refs EventHub/EventHubFrontAdmin#29

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-13 17:35:52 +03:00
parent 72f973bbd1
commit 755d22cf48
+7
View File
@@ -267,6 +267,13 @@ const UserListPage: React.FC = () => {
</Card> </Card>
</Col> </Col>
))} ))}
{Object.entries(stats.users_by_role || {}).map(([role, count]) => (
<Col xs={12} sm={6} md={4} key={`role-${role}`}>
<Card>
<Statistic title={`Роль: ${role}`} value={count} />
</Card>
</Col>
))}
</Row> </Row>
)} )}
<Table <Table