-
Notifications
You must be signed in to change notification settings - Fork 40
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
1 parent
b935417
commit 406737c
Showing
13 changed files
with
246 additions
and
173 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
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
23 changes: 5 additions & 18 deletions
23
apps/nextjs/src/app/(app)/collection/TokenCardSkeleton.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 |
---|---|---|
@@ -1,23 +1,10 @@ | ||
export function TokenCardSkeleton({ pulse = true }: { pulse?: boolean }) { | ||
export function TokenCardSkeleton({ | ||
pulse = true, | ||
children, | ||
}: React.HTMLAttributes<HTMLDivElement> & { pulse?: boolean }) { | ||
return ( | ||
<div className="flex min-h-[300px] flex-row border-2 bg-background/90"> | ||
<div className="flex-grow"> | ||
<div className="h-[200px] w-full animate-pulse bg-black/60"></div> | ||
<div className="space-y-3 p-4"> | ||
<div | ||
className={`w-1/2 bg-medium-dark-green ${pulse && "animate-pulse"}`} | ||
> | ||
| ||
</div> | ||
<p | ||
className={`w-1/3 bg-medium-dark-green text-sm ${ | ||
pulse && "animate-pulse" | ||
}`} | ||
> | ||
| ||
</p> | ||
</div> | ||
</div> | ||
{children} | ||
</div> | ||
); | ||
} |
Oops, something went wrong.