Skip to content

Commit bd29033

Browse files
committed
fix: resolve exprot error
1 parent 2282cd8 commit bd29033

File tree

3 files changed

+32
-29
lines changed

3 files changed

+32
-29
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import { Container } from '@/components/Container';
2+
import { ProfileAvatarSkeleton } from './ProfileAvatar';
3+
import { Skeleton } from '@/components/ui/skeleton';
4+
import { FeedSkeleton } from './Feed';
5+
6+
export const PageSkeleton = () => {
7+
return (
8+
<Container className="pt-16 max-w-[1440px] overflow-auto">
9+
<div className="flex max-lg:flex-col w-full gap-4">
10+
<div className="lg:w-[30%] min-w-[300px] w-full">
11+
<div className="flex flex-col gap-y-2 text-center items-center">
12+
<ProfileAvatarSkeleton size="5xl" />
13+
<div className="text-3xl font-semibold">
14+
<Skeleton className="w-[140px] h-9 bg-primary-200 rounded-3xl" />
15+
</div>
16+
<div className="flex gap-x-1 items-center text-md text-gray-600 font-medium">
17+
<Skeleton className="w-[160px] h-8 bg-primary-200 rounded-3xl" />
18+
<Skeleton className="w-[100px] h-8 bg-primary-200 rounded-3xl" />
19+
</div>
20+
<Skeleton className="mt-2 w-[260px] h-6 bg-primary-200 rounded-3xl" />
21+
</div>
22+
</div>
23+
<div className="w-full">
24+
<FeedSkeleton />
25+
</div>
26+
</div>
27+
</Container>
28+
);
29+
};

packages/dapp/src/app/profile/[slug]/loading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PageSkeleton } from './page';
1+
import { PageSkeleton } from './PageSkeleton';
22

33
export default function Loading() {
44
return <PageSkeleton />;

packages/dapp/src/app/profile/[slug]/page.tsx

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ import { validateOrGetDefaultPlatform } from '@/utils/platform';
77
import { Badges } from './Badges';
88
import Link from 'next/link';
99
import { ShareDialog } from './ShareDialog';
10-
import { ProfileAvatar, ProfileAvatarSkeleton } from './ProfileAvatar';
11-
import { Feed, FeedSkeleton } from './Feed';
10+
import { ProfileAvatar } from './ProfileAvatar';
11+
import { Feed } from './Feed';
1212
import { validateOrGetDefaultNetwork } from '@/utils/validateOrGetDefaultNetwork';
13-
import { Skeleton } from '@/components/ui/skeleton';
1413

1514
export default async function Page({
1615
params: { slug },
@@ -74,31 +73,6 @@ export default async function Page({
7473
);
7574
}
7675

77-
export const PageSkeleton = () => {
78-
return (
79-
<Container className="pt-16 max-w-[1440px] overflow-auto">
80-
<div className="flex max-lg:flex-col w-full gap-4">
81-
<div className="lg:w-[30%] min-w-[300px] w-full">
82-
<div className="flex flex-col gap-y-2 text-center items-center">
83-
<ProfileAvatarSkeleton size="5xl" />
84-
<div className="text-3xl font-semibold">
85-
<Skeleton className="w-[140px] h-9 bg-primary-200 rounded-3xl" />
86-
</div>
87-
<div className="flex gap-x-1 items-center text-md text-gray-600 font-medium">
88-
<Skeleton className="w-[160px] h-8 bg-primary-200 rounded-3xl" />
89-
<Skeleton className="w-[100px] h-8 bg-primary-200 rounded-3xl" />
90-
</div>
91-
<Skeleton className="mt-2 w-[260px] h-6 bg-primary-200 rounded-3xl" />
92-
</div>
93-
</div>
94-
<div className="w-full">
95-
<FeedSkeleton />
96-
</div>
97-
</div>
98-
</Container>
99-
);
100-
};
101-
10276
// export async function generateMetadata({
10377
// params: { slug },
10478
// }: {

0 commit comments

Comments
 (0)