Skip to content

Commit

Permalink
feat: show traffic in list view
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed Nov 6, 2020
1 parent 76bf1e6 commit b6d724d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/pages/Requests/components/ListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { jsx } from '@emotion/core'
import styled from '@emotion/styled/macro'
import css from '@emotion/css/macro'
import bytes from 'bytes'
import dayjs from 'dayjs'
import tw from 'twin.macro'
import React from 'react'
Expand Down Expand Up @@ -30,9 +31,17 @@ const ListItem: React.FC<{ req: RequestItem }> = ({ req }) => {
/>
<div tw="text-xs ml-1">#{req.id}</div>
<div tw="text-xs ml-1">
{dayjs.unix(req.startDate).format('HH:mm:ss')}
<span> - </span>
<span>{dayjs.unix(req.startDate).format('HH:mm:ss')}</span>
</div>
<div tw="text-xs ml-1">
<span> - </span>
<span>{bytes(req.inBytes + req.outBytes)}</span>
</div>
<div tw="text-xs ml-1">
<span> - </span>
<span>{req.status}</span>
</div>
<div tw="text-xs ml-1">{req.status}</div>
</div>
</React.Fragment>
)
Expand Down

0 comments on commit b6d724d

Please sign in to comment.