diff --git a/frontend/src/component/project/Project/ProjectStatus/StaleFlags.tsx b/frontend/src/component/project/Project/ProjectStatus/StaleFlags.tsx index a0e7c0ec3070..8c533f45f0b3 100644 --- a/frontend/src/component/project/Project/ProjectStatus/StaleFlags.tsx +++ b/frontend/src/component/project/Project/ProjectStatus/StaleFlags.tsx @@ -1,6 +1,8 @@ import { Typography } from '@mui/material'; import { styled } from '@mui/material'; import { PrettifyLargeNumber } from 'component/common/PrettifyLargeNumber/PrettifyLargeNumber'; +import { useProjectStatus } from 'hooks/api/getters/useProjectStatus/useProjectStatus'; +import useLoading from 'hooks/useLoading'; import { useRequiredPathParam } from 'hooks/useRequiredPathParam'; import type { FC } from 'react'; import { Link } from 'react-router-dom'; @@ -19,7 +21,7 @@ const BigText = styled('span')(({ theme }) => ({ const BigNumber: FC<{ value?: number }> = ({ value }) => { return ( - + = ({ value }) => { export const StaleFlags = () => { const projectId = useRequiredPathParam('projectId'); + const { data, loading } = useProjectStatus(projectId); + const loadingRef = useLoading(loading, '[data-loading-stale-flags=true]'); + return ( - + - {' '} + {' '} stale flags