Skip to content

Commit

Permalink
Show skeleton during refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Aug 28, 2024
1 parent ee8f88f commit 83bc26e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/exposure-list/[[...mjd]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function ExposureDataTable(props: {
reloading: boolean;
}) {
if (!props.data) {
return <Skeleton height={600} w="100%" />;
return <Skeleton height="80vh" w="100%" />;
}

const { data, reloading = false } = props;
Expand Down Expand Up @@ -206,7 +206,7 @@ export default function ExposureListPage({ params }: { params: { mjd: string[] }
}, []);

React.useEffect(() => {
forceRefresh(false);
forceRefresh(true);
const interval = setInterval(() => forceRefresh(false), 60000);

return () => clearInterval(interval);
Expand Down

0 comments on commit 83bc26e

Please sign in to comment.