@orsetra/shared-ui 1.11.2 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,7 @@ import { useEnvironmentContext } from "../../context/environment-context"
|
|
|
5
5
|
import { environmentGateView, environmentLabel } from "../../lib/environment-context"
|
|
6
6
|
import { AlertBanner } from "../ui/alert-banner"
|
|
7
7
|
import { EnvironmentRequired } from "../ui/environment-required"
|
|
8
|
+
import { Spinner } from "../ui/spinner"
|
|
8
9
|
|
|
9
10
|
export interface EnvironmentGateProps {
|
|
10
11
|
children: ReactNode
|
|
@@ -18,10 +19,8 @@ export function EnvironmentGate({ children, required = true, createHref }: Envir
|
|
|
18
19
|
|
|
19
20
|
if (view === "waiting") {
|
|
20
21
|
return (
|
|
21
|
-
<div className="
|
|
22
|
-
<
|
|
23
|
-
<div className="h-24 bg-white border border-ui-border animate-pulse" />
|
|
24
|
-
<div className="h-24 bg-white border border-ui-border animate-pulse" />
|
|
22
|
+
<div className="flex items-center justify-center h-full min-h-[320px]" aria-busy="true">
|
|
23
|
+
<Spinner size="lg" label="Loading environments" />
|
|
25
24
|
</div>
|
|
26
25
|
)
|
|
27
26
|
}
|