Skip to content

Commit

Permalink
Use vice loading animation on instant launch page while loading (not …
Browse files Browse the repository at this point in the history
…that it takes long)
  • Loading branch information
ianmcorvidae committed Oct 10, 2024
1 parent b49036a commit 2726412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/instantlaunches/launch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { useTranslation } from "i18n";
import isQueryLoading from "components/utils/isQueryLoading";
import InstantLaunchButtonWrapper from "components/instantlaunches/InstantLaunchButtonWrapper";
import withErrorAnnouncer from "components/error/withErrorAnnouncer";
import LoadingAnimation from "components/vice/loading/LoadingAnimation";

const InstantLaunchStandalone = (props) => {
const { id: instant_launch_id, showErrorAnnouncer } = props;
Expand Down Expand Up @@ -59,7 +60,7 @@ const InstantLaunchStandalone = (props) => {
const isLoading = isQueryLoading([status, isFetchingUsageSummary]);

if (isLoading) {
return <p>... loading ...</p>;
return <LoadingAnimation />;
} else if (error) {
return (
<p>
Expand Down

0 comments on commit 2726412

Please sign in to comment.