Skip to content

Commit

Permalink
fix: resolve exprot error
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 committed Jun 6, 2024
1 parent 2282cd8 commit bd29033
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 29 deletions.
29 changes: 29 additions & 0 deletions packages/dapp/src/app/profile/[slug]/PageSkeleton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Container } from '@/components/Container';
import { ProfileAvatarSkeleton } from './ProfileAvatar';
import { Skeleton } from '@/components/ui/skeleton';
import { FeedSkeleton } from './Feed';

export const PageSkeleton = () => {
return (
<Container className="pt-16 max-w-[1440px] overflow-auto">
<div className="flex max-lg:flex-col w-full gap-4">
<div className="lg:w-[30%] min-w-[300px] w-full">
<div className="flex flex-col gap-y-2 text-center items-center">
<ProfileAvatarSkeleton size="5xl" />
<div className="text-3xl font-semibold">
<Skeleton className="w-[140px] h-9 bg-primary-200 rounded-3xl" />
</div>
<div className="flex gap-x-1 items-center text-md text-gray-600 font-medium">
<Skeleton className="w-[160px] h-8 bg-primary-200 rounded-3xl" />
<Skeleton className="w-[100px] h-8 bg-primary-200 rounded-3xl" />
</div>
<Skeleton className="mt-2 w-[260px] h-6 bg-primary-200 rounded-3xl" />
</div>
</div>
<div className="w-full">
<FeedSkeleton />
</div>
</div>
</Container>
);
};
2 changes: 1 addition & 1 deletion packages/dapp/src/app/profile/[slug]/loading.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PageSkeleton } from './page';
import { PageSkeleton } from './PageSkeleton';

export default function Loading() {
return <PageSkeleton />;
Expand Down
30 changes: 2 additions & 28 deletions packages/dapp/src/app/profile/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import { validateOrGetDefaultPlatform } from '@/utils/platform';
import { Badges } from './Badges';
import Link from 'next/link';
import { ShareDialog } from './ShareDialog';
import { ProfileAvatar, ProfileAvatarSkeleton } from './ProfileAvatar';
import { Feed, FeedSkeleton } from './Feed';
import { ProfileAvatar } from './ProfileAvatar';
import { Feed } from './Feed';
import { validateOrGetDefaultNetwork } from '@/utils/validateOrGetDefaultNetwork';
import { Skeleton } from '@/components/ui/skeleton';

export default async function Page({
params: { slug },
Expand Down Expand Up @@ -74,31 +73,6 @@ export default async function Page({
);
}

export const PageSkeleton = () => {
return (
<Container className="pt-16 max-w-[1440px] overflow-auto">
<div className="flex max-lg:flex-col w-full gap-4">
<div className="lg:w-[30%] min-w-[300px] w-full">
<div className="flex flex-col gap-y-2 text-center items-center">
<ProfileAvatarSkeleton size="5xl" />
<div className="text-3xl font-semibold">
<Skeleton className="w-[140px] h-9 bg-primary-200 rounded-3xl" />
</div>
<div className="flex gap-x-1 items-center text-md text-gray-600 font-medium">
<Skeleton className="w-[160px] h-8 bg-primary-200 rounded-3xl" />
<Skeleton className="w-[100px] h-8 bg-primary-200 rounded-3xl" />
</div>
<Skeleton className="mt-2 w-[260px] h-6 bg-primary-200 rounded-3xl" />
</div>
</div>
<div className="w-full">
<FeedSkeleton />
</div>
</div>
</Container>
);
};

// export async function generateMetadata({
// params: { slug },
// }: {
Expand Down

0 comments on commit bd29033

Please sign in to comment.