Files
Gildas Garcia b30db91d71 chore: cleanup UI patterns exports (#47406)
## Problem

We now export components under a subpath in ui-patterns to avoid barrel
files as they slow down every tools (from IDE to linters, etc.) and may
also affect bundles our users have to download.

## Solution

- Remove the UI patterns index file
- Fix invalid impors
2026-06-30 09:23:17 +02:00

41 lines
1.6 KiB
TypeScript

import type { ReactNode } from 'react'
import { Card, CardContent } from 'ui'
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
import { InterstitialLayout, SupabaseLogo } from '@/components/layouts/InterstitialLayout'
export function ApiAuthorizationLoadingScreen(): ReactNode {
return (
<InterstitialLayout
logo={<SupabaseLogo />}
title={<ShimmeringLoader className="mx-auto h-7 w-28 max-w-full py-0" />}
description={<ShimmeringLoader className="mx-auto h-4 w-56 max-w-full py-0" />}
>
<div className="px-6 pb-6">
<span className="sr-only">Loading...</span>
<div className="flex flex-col gap-5">
<Card className="shadow-none">
<CardContent className="flex items-center gap-3 border-none px-4 py-3">
<ShimmeringLoader className="size-10 flex-shrink-0 rounded-lg py-0" />
<div className="flex min-w-0 flex-1 flex-col gap-2">
<ShimmeringLoader className="h-4 w-28 py-0" />
<ShimmeringLoader className="h-3 w-20 py-0" />
</div>
</CardContent>
</Card>
<Card className="shadow-none">
<CardContent className="space-y-3 border-none px-4 py-4">
<ShimmeringLoader className="h-4 w-full py-0" />
<ShimmeringLoader className="h-4 w-4/5 py-0" />
</CardContent>
</Card>
<div className="flex flex-col gap-2">
<ShimmeringLoader className="h-10 w-full py-0" />
<ShimmeringLoader className="h-10 w-full py-0" />
</div>
</div>
</div>
</InterstitialLayout>
)
}