From cee790079237e996a4b3319a9df7f6400a114f21 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Fri, 13 Sep 2024 13:48:37 -0400 Subject: [PATCH] fixup! feat: Display empty detour table icon when the table is empty --- assets/src/components/detoursTable.tsx | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/assets/src/components/detoursTable.tsx b/assets/src/components/detoursTable.tsx index a84046fb1..52eb72e68 100644 --- a/assets/src/components/detoursTable.tsx +++ b/assets/src/components/detoursTable.tsx @@ -41,24 +41,15 @@ export const DetoursTable = ({ data, status }: DetoursTableProps) => ( - + {data === null ? ( + + ) : ( + + )} ) -const DetourRows = ({ - data, - status, -}: { - data: SimpleDetour[] | null - status: DetourStatus -}) => - data === null ? ( - - ) : ( - - ) - const PopulatedDetourRows = ({ data }: { data: SimpleDetour[] }) => { const epochNowInSeconds = useCurrentTimeSeconds()