Skip to content

Commit

Permalink
fix: skeleton instead of loading text
Browse files Browse the repository at this point in the history
  • Loading branch information
frectonz committed Jun 18, 2024
1 parent 9d556e7 commit 4449715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/routes/tables.lazy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ function TableData({ name }: TableDataProps) {
},
});

if (!data) return <p>Loading...</p>;
if (!data) return <Skeleton className="h-[400px]" />;

function handleScroll(event: React.UIEvent<HTMLDivElement>) {
if (isLoading || !isAtBottom(event) || !hasNextPage) return;
Expand Down

0 comments on commit 4449715

Please sign in to comment.