Skip to content

Commit

Permalink
Add peer's last seem time on popover (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon authored Dec 16, 2022
1 parent 2fa33ec commit 0361825
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/views/Peers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,11 @@ export const Peers = () => {

<Column title="LastSeen" dataIndex="last_seen"
render={(text, record, index) => {
return (record as PeerDataTable).connected ? 'just now' : timeAgo(text)
console.log(text)
let dt = new Date(text)
return <Popover content={dt.toLocaleString()}>
{(record as PeerDataTable).connected ? 'just now' : timeAgo(text)}
</Popover>
}}
/>
<Column title="OS" dataIndex="os"
Expand Down

0 comments on commit 0361825

Please sign in to comment.