mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## Context This is largely just a mechanical change here: Opting to use lucide icons with the `Icon` suffix across all icon imports within `studio` - so that it’s clearer which components are icons + reduces the possibility of name collision with our own components - e.g <User /> vs <UserIcon /> Also added a eslint rule for this: <img width="1069" height="167" alt="image" src="https://github.com/user-attachments/assets/7f36f443-5ca2-4bf6-8d22-86e774513bfc" /> And updated `AGENTS.md` as such: ``` Icons come from `lucide-react`, always imported with the `Icon` suffix (`import { CheckIcon, Trash2Icon } from 'lucide-react'`) — never the bare names (`Check`) or `Check as CheckIcon` aliases (lint-enforced). ```
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
import { ChevronUpIcon } from 'lucide-react'
|
|
import { cn } from 'ui'
|
|
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
|
|
|
|
export interface RoleRowSkeletonProps {
|
|
index?: number
|
|
}
|
|
|
|
export const RoleRowSkeleton = ({ index }: RoleRowSkeletonProps) => {
|
|
return (
|
|
<div
|
|
className={cn([
|
|
'bg-surface-100',
|
|
'data-open:bg-selection',
|
|
'border-default',
|
|
'data-open:border-strong',
|
|
'data-open:pb-px col-span-12 mx-auto',
|
|
'-space-y-px overflow-hidden',
|
|
'border border-t-0 first:border-t first:mt-0! shadow-sm transition',
|
|
'first:rounded-tl first:rounded-tr',
|
|
'last:rounded-bl last:rounded-br',
|
|
])}
|
|
>
|
|
<div className="flex w-full items-center justify-between rounded-sm py-3 px-6 text-foreground">
|
|
<div className="flex items-start space-x-3">
|
|
<ChevronUpIcon
|
|
id="collapsible-trigger"
|
|
className="text-border-stronger rotate-180"
|
|
strokeWidth={2}
|
|
width={14}
|
|
/>
|
|
<div className="space-x-2 flex items-center">
|
|
<ShimmeringLoader className="h-4 w-20 py-0 my-0.5" delayIndex={index} />
|
|
<ShimmeringLoader className="h-4 w-16 py-0 my-0.5" delayIndex={index} />
|
|
</div>
|
|
</div>
|
|
|
|
<ShimmeringLoader className="h-4 w-[90px] py-0 my-0.5" delayIndex={index} />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|