Skip to content

Commit c2a9054

Browse files
committed
Add loading.tsx for connect pages (#5240)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR primarily focuses on standardizing loading pages across various components in the dashboard by introducing a `GenericLoadingPage`. It also refines data fetching error handling and enhances the `InAppWalletsHeader` and `InAppWallets` pages with improved stats handling. ### Detailed summary - Deleted multiple `layout.tsx` files. - Added `"use client"` directive to various loading components. - Implemented `GenericLoadingPage` for consistent loading UI. - Improved error handling in `getInAppWalletUsage` function. - Enhanced `InAppWalletsHeader` with Promise.all for stats fetching. - Updated `InAppWallets` pages to handle empty stats gracefully. - Added footer section to several pages for better UX. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 802d3bf commit c2a9054

File tree

35 files changed

+130
-31
lines changed

35 files changed

+130
-31
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"use client";
2+
3+
import { Spinner } from "@/components/ui/Spinner/Spinner";
4+
5+
export function GenericLoadingPage() {
6+
return (
7+
<div className="flex min-h-[500px] grow items-center justify-center rounded-lg border border-border">
8+
<Spinner className="size-10" />
9+
</div>
10+
);
11+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use client";
2+
3+
export { GenericLoadingPage as default } from "@/components/blocks/skeletons/GenericLoadingPage";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use client";
2+
3+
export { GenericLoadingPage as default } from "@/components/blocks/skeletons/GenericLoadingPage";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use client";
2+
3+
export { GenericLoadingPage as default } from "@/components/blocks/skeletons/GenericLoadingPage";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use client";
2+
3+
export { GenericLoadingPage as default } from "@/components/blocks/skeletons/GenericLoadingPage";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use client";
2+
3+
export { GenericLoadingPage as default } from "@/components/blocks/skeletons/GenericLoadingPage";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use client";
2+
3+
export { GenericLoadingPage as default } from "@/components/blocks/skeletons/GenericLoadingPage";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use client";
2+
3+
export { GenericLoadingPage as default } from "@/components/blocks/skeletons/GenericLoadingPage";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use client";
2+
3+
export { GenericLoadingPage as default } from "@/components/blocks/skeletons/GenericLoadingPage";
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use client";
2+
3+
export { GenericLoadingPage as default } from "@/components/blocks/skeletons/GenericLoadingPage";

0 commit comments

Comments
 (0)