From 1afd130c901e836c71e02d7fe22d050cacde92c8 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Tue, 14 Feb 2023 14:42:03 +0100 Subject: [PATCH] change(ui): fixes for type --- .../components/shared/DevTools/NetworkPanel/NetworkPanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/shared/DevTools/NetworkPanel/NetworkPanel.tsx b/frontend/app/components/shared/DevTools/NetworkPanel/NetworkPanel.tsx index 38ebdf365..dbd25cede 100644 --- a/frontend/app/components/shared/DevTools/NetworkPanel/NetworkPanel.tsx +++ b/frontend/app/components/shared/DevTools/NetworkPanel/NetworkPanel.tsx @@ -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)