mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
* feat: workflow run logs * progress * adds logs modal * remove menu item * output raw text * update parseAs * accept text/plain * cleanup ui * feature flag new logs * fix types * fix condition * cleanup spacing * loading spacing * cheeky console.log * more log * split logs properly * add workflow logs to prod branches * address some feedback * Some UI tweaks * More UI tweak * More UI tweak --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
39 lines
843 B
TypeScript
39 lines
843 B
TypeScript
import { cn } from 'ui'
|
|
|
|
export interface ShimmeringLoader {
|
|
className?: string
|
|
delayIndex?: number
|
|
animationDelay?: number
|
|
}
|
|
|
|
const ShimmeringLoader = ({
|
|
className,
|
|
delayIndex = 0,
|
|
animationDelay = 150,
|
|
}: ShimmeringLoader) => {
|
|
return (
|
|
<div
|
|
className={cn('shimmering-loader rounded py-3', className)}
|
|
style={{
|
|
animationFillMode: 'backwards',
|
|
animationDelay: `${delayIndex * animationDelay}ms`,
|
|
}}
|
|
/>
|
|
)
|
|
}
|
|
|
|
interface GenericSkeletonLoaderProps {
|
|
className?: string
|
|
}
|
|
|
|
const GenericSkeletonLoader = ({ className }: GenericSkeletonLoaderProps) => (
|
|
<div className={cn(className, 'space-y-2')}>
|
|
<ShimmeringLoader />
|
|
<ShimmeringLoader className="w-3/4" />
|
|
<ShimmeringLoader className="w-1/2" />
|
|
</div>
|
|
)
|
|
|
|
export { GenericSkeletonLoader }
|
|
export default ShimmeringLoader
|