-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(platform): Add loading skeleton in the secrets page (#423)
- Loading branch information
1 parent
4688e8c
commit a97681e
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { cn } from '@/lib/utils' | ||
|
||
function Skeleton({ | ||
className, | ||
...props | ||
}: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element { | ||
return ( | ||
<div | ||
className={cn( | ||
'animate-pulse rounded-md bg-white/20 dark:bg-zinc-800', | ||
className | ||
)} | ||
{...props} | ||
/> | ||
) | ||
} | ||
|
||
export { Skeleton } |