-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add skeleton and remode debris
- Loading branch information
1 parent
178c4da
commit 0540f8d
Showing
5 changed files
with
46 additions
and
32 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
27 changes: 27 additions & 0 deletions
27
apps/wallet-dashboard/components/migration/MigrationObjectLoading.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,27 @@ | ||
// Copyright (c) 2024 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { Card, CardImage, ImageShape, Skeleton } from '@iota/apps-ui-kit'; | ||
|
||
export function MigrationObjectLoading() { | ||
return ( | ||
<div className="flex h-full max-h-full w-full flex-col overflow-hidden"> | ||
{new Array(10).fill(0).map((_, index) => ( | ||
<Card key={index}> | ||
<CardImage shape={ImageShape.SquareRounded}> | ||
<div className="h-10 w-10 animate-pulse bg-neutral-90 dark:bg-neutral-12" /> | ||
<Skeleton widthClass="w-10" heightClass="h-10" isRounded={false} /> | ||
</CardImage> | ||
<div className="flex flex-col gap-y-xs"> | ||
<Skeleton widthClass="w-40" heightClass="h-3.5" /> | ||
<Skeleton widthClass="w-32" heightClass="h-3" hasSecondaryColors /> | ||
</div> | ||
<div className="ml-auto flex flex-col gap-y-xs"> | ||
<Skeleton widthClass="w-20" heightClass="h-3.5" /> | ||
<Skeleton widthClass="w-16" heightClass="h-3" hasSecondaryColors /> | ||
</div> | ||
</Card> | ||
))} | ||
</div> | ||
); | ||
} |
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