-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
12 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
29 changes: 29 additions & 0 deletions
29
src/app/(lobby)/@modal/(.)preview/product/[productId]/loading.tsx
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,29 @@ | ||
import { cn } from "@/lib/utils" | ||
import { Skeleton } from "@/components/ui/skeleton" | ||
import { PlaceholderImage } from "@/components/placeholder-image" | ||
import { DialogShell } from "@/components/shells/dialog-shell" | ||
|
||
export default function ProductModalLoading() { | ||
return ( | ||
<DialogShell className="flex flex-col gap-2 overflow-visible sm:flex-row"> | ||
<Skeleton className="absolute right-10 top-4 h-4 w-4" /> | ||
<PlaceholderImage ratio={16 / 9} className="rounded-none" /> | ||
<div className="w-full space-y-6 p-6 sm:p-10"> | ||
<div className="space-y-2.5"> | ||
<Skeleton className="h-7 w-1/2" /> | ||
<Skeleton className="h-4 w-10" /> | ||
<Skeleton className="h-4 w-24" /> | ||
<Skeleton className="h-4 w-20" /> | ||
</div> | ||
<div className="space-y-2"> | ||
{Array.from({ length: 4 }, (_, i) => ( | ||
<Skeleton | ||
key={i} | ||
className={cn("h-4 w-full", i === 3 && "w-1/2")} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</DialogShell> | ||
) | ||
} |
2 changes: 1 addition & 1 deletion
2
src/app/(lobby)/@modal/(.)preview/product/[productId]/not-found.tsx
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
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
13a69b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
skateshop – ./
skateshop.sadmn.com
skateshop-git-main-sadmann7.vercel.app
skateshop-sadmann7.vercel.app
skateshop13.vercel.app