Fix/issue#2441 (#2443)

* fix the rendering issues related to More Info

* update

* update Chat Moderation Details component
This commit is contained in:
Jambaldorj Ochirpurev 2022-12-27 20:57:44 +01:00 committed by GitHub
parent 35e6c69612
commit f8a481ff70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,7 @@ export interface Client {
userAgent: string;
connectedAt: Date;
geo: string;
id: number;
}
export interface Message {
@ -156,7 +157,7 @@ export const ChatModerationDetailsModal: FC<ChatModerationDetailsModalProps> = (
<Panel header="Currently Connected Clients" key="connected-clients">
<Collapse accordion>
{connectedClients.map(client => (
<Panel header={formatUAstring(client.userAgent)} key={client.userAgent}>
<Panel header={formatUAstring(client.userAgent)} key={client.id}>
<ConnectedClient client={client} />
</Panel>
))}
@ -169,6 +170,7 @@ export const ChatModerationDetailsModal: FC<ChatModerationDetailsModalProps> = (
pagination={null}
columns={chatMessageColumns}
dataSource={messages}
rowKey="id"
/>
</Panel>
</Collapse>