-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client): add entry list loading skeleton to aside
- Loading branch information
1 parent
03394ee
commit f39ecf1
Showing
2 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
.../src/components/feature/aside-nav/components/entry-list/entry-list-skeleton.component.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,18 @@ | ||
import { Skeleton } from "@/components/ui/skeleton"; | ||
|
||
export function EntryListSkeleton() { | ||
return ( | ||
<ul className="w-full flex flex-col gap-2"> | ||
{Array(9) | ||
.fill("") | ||
.map((_, index) => ( | ||
<li key={index} className="flex flex-col p-2 gap-2"> | ||
<Skeleton | ||
className={`${index % 2 === 0 ? "w-44" : "w-24"} h-4 rounded-md`} | ||
/> | ||
<Skeleton className="w-36 h-3 rounded-md" /> | ||
</li> | ||
))} | ||
</ul> | ||
); | ||
} |
7 changes: 5 additions & 2 deletions
7
apps/client/src/components/feature/aside-nav/views/desktop/desktop.view.component.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