Skip to content

Commit

Permalink
💄 Update skeleton styling
Browse files Browse the repository at this point in the history
  • Loading branch information
DonFungible committed Feb 13, 2025
1 parent 84df7eb commit 3bc0d80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
21 changes: 0 additions & 21 deletions src/components/cards/StakingDataCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,24 +67,3 @@ export default function StakingDataCard(props: StakingDataCardProps) {
</StyledCard>
)
}

export function StakingDataCardSkeleton(
props: { title?: string; className?: string } & VariantProps<typeof dataCardVariants>
) {
return (
<div
className={cn(
dataCardVariants({
variant: props.variant,
size: props.size,
className: props.className,
})
)}
>
{props.title && <p className="text-lg text-primary-outline">{props.title}</p>}
<Skeleton className="h-12 w-full animate-pulse rounded-md bg-white/20" />
</div>
)

// <Skeleton className='h-40 w-40' />
}
4 changes: 3 additions & 1 deletion src/components/ui/skeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { cn } from '@/lib/utils'

function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) {
return <div className={cn('animate-pulse rounded-md bg-white/10', className)} {...props} />
return (
<div className={cn('animate-pulse rounded-md bg-[#1C1C1C] border border-primary-border', className)} {...props} />
)
}

export { Skeleton }

0 comments on commit 3bc0d80

Please sign in to comment.