👺 Fixed usage of context with sockets

This commit is contained in:
2021-09-24 15:08:54 -07:00
parent 7615e1fe52
commit ca082b8220
7 changed files with 82 additions and 81 deletions

View File

@@ -7,6 +7,7 @@ import { useDispatch, useSelector } from "react-redux";
import { RootState } from "threetwo-ui-typings";
import { isNil, map } from "lodash";
import prettyBytes from "pretty-bytes";
import dayjs from "dayjs";
import ellipsize from "ellipsize";
interface IDownloadsPanelProps {
@@ -73,7 +74,7 @@ export const DownloadsPanel = (
<tr>
<th>Filename</th>
<th>Size</th>
<th>Time</th>
<th>Download Time</th>
</tr>
</thead>
<tbody>
@@ -86,6 +87,11 @@ export const DownloadsPanel = (
<span className="is-size-7">{bundle.target}</span>
</td>
<td>{prettyBytes(bundle.size)}</td>
<td>
{dayjs
.unix(bundle.time_finished)
.format("h:mm on ddd, D MMM, YYYY")}
</td>
</tr>
))}
</tbody>