change(ui): fixes for type

This commit is contained in:
nick-delirium 2023-02-14 14:42:03 +01:00 committed by Delirium
parent e5a93d4ca0
commit 1afd130c90

View file

@ -128,8 +128,7 @@ export function renderDuration(r: any) {
);
}
function renderStatus({ status }) {
function renderStatus({ status }: { status: string }) {
return (
<>
{parseInt(status, 10) === 200 ? (
@ -143,6 +142,7 @@ function renderStatus({ status }) {
</>
)
}
function NetworkPanel({ startedAt }: { startedAt: number }) {
const { player, store } = React.useContext(PlayerContext)