Skip to content

Commit

Permalink
Add: loading state for routing
Browse files Browse the repository at this point in the history
  • Loading branch information
Parikshit85 committed Apr 2, 2024
1 parent 5c55553 commit 6ade317
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ui/app/components/circularPageLoading/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"use client";
import { Backdrop, CircularProgress } from "@mui/material";

type Props = {};

export default function CircularPageLoading({}: Props) {
return (
<Backdrop open={true}>
<CircularProgress color="secondary" />
</Backdrop>
);
}
8 changes: 8 additions & 0 deletions src/ui/app/influencer/dashboard/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use client";
import CircularPageLoading from "@/app/components/circularPageLoading";

type Props = {};

export default function Loading({}: Props) {
return <CircularPageLoading />;
}
8 changes: 8 additions & 0 deletions src/ui/app/influencer/messages/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use client";
import CircularPageLoading from "@/app/components/circularPageLoading";

type Props = {};

export default function Loading({}: Props) {
return <CircularPageLoading />;
}
8 changes: 8 additions & 0 deletions src/ui/app/influencer/orders/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"use client";
import CircularPageLoading from "@/app/components/circularPageLoading";

type Props = {};

export default function Loading({}: Props) {
return <CircularPageLoading />;
}

0 comments on commit 6ade317

Please sign in to comment.