Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export function MiniAppCardSkeleton() {
return (
<div className="flex items-center gap-3 p-4 rounded-2xl bg-content">
<div className="w-12 h-12 rounded-xl skeleton bg-base-content/10 shrink-0" />
<div className="flex items-center gap-3 p-2 border border-content rounded-2xl bg-content">
<div className="w-8 h-8 rounded-xl skeleton bg-base-content/10 shrink-0" />
<div className="flex-1 space-y-2">
<div className="w-28 h-3.5 rounded-full skeleton bg-base-content/10" />
<div className="w-40 h-2.5 rounded-full skeleton bg-base-content/5" />
Expand Down
4 changes: 4 additions & 0 deletions src/layouts/mini-apps/mini-apps.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export function MiniAppsLayout() {
<p className="text-sm text-muted">به زودی پر میشه...</p>
</div>
)}
{isLoading
? [...Array(5)].map((_, i) => <MiniAppCardSkeleton key={i} />)
: null}

{miniApps.map((app) => (
<div key={app.appId}>
<MiniAppCard
Expand Down
Loading