Fleet UI: Add loading spinner to current versions table (#20099)

This commit is contained in:
RachelElysia 2024-07-02 11:36:35 -04:00 committed by GitHub
parent 7a9d29e823
commit 9c4d01712f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ import {
import LastUpdatedText from "components/LastUpdatedText";
import SectionHeader from "components/SectionHeader";
import DataError from "components/DataError";
import Spinner from "components/Spinner";
import OSVersionTable from "../OSVersionTable";
import { OSUpdatesSupportedPlatform } from "../../OSUpdates";
@ -56,6 +57,10 @@ const CurrentVersionSection = ({
};
const renderTable = () => {
if (isLoadingOsVersions) {
return <Spinner />;
}
if (isError) {
return (
<DataError