Skip to content

Commit b6d724d

Browse files
committed
feat: show traffic in list view
1 parent 76bf1e6 commit b6d724d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/pages/Requests/components/ListItem.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { jsx } from '@emotion/core'
33
import styled from '@emotion/styled/macro'
44
import css from '@emotion/css/macro'
5+
import bytes from 'bytes'
56
import dayjs from 'dayjs'
67
import tw from 'twin.macro'
78
import React from 'react'
@@ -30,9 +31,17 @@ const ListItem: React.FC<{ req: RequestItem }> = ({ req }) => {
3031
/>
3132
<div tw="text-xs ml-1">#{req.id}</div>
3233
<div tw="text-xs ml-1">
33-
{dayjs.unix(req.startDate).format('HH:mm:ss')}
34+
<span> - </span>
35+
<span>{dayjs.unix(req.startDate).format('HH:mm:ss')}</span>
36+
</div>
37+
<div tw="text-xs ml-1">
38+
<span> - </span>
39+
<span>{bytes(req.inBytes + req.outBytes)}</span>
40+
</div>
41+
<div tw="text-xs ml-1">
42+
<span> - </span>
43+
<span>{req.status}</span>
3444
</div>
35-
<div tw="text-xs ml-1">{req.status}</div>
3645
</div>
3746
</React.Fragment>
3847
)

0 commit comments

Comments
 (0)