Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
refactor(event): move activity details shell in outer _component
Browse files Browse the repository at this point in the history
  • Loading branch information
jhdcruz committed Nov 15, 2024
1 parent 72ed48d commit 69a3840
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/portal/activities/[id]/[activeTab]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { metadata as defaultMetadata } from '@/app/layout';
import { systemUrl } from '@/app/routes';
import { createServerClient } from '@/libs/supabase/server';
import { getActivityDetails } from '@/libs/supabase/api/activity';
import { ActivityDetailsShell } from '@portal/activities/_components/ActivityDetails/ActivityDetailsShell';
import { ActivityShell } from '@portal/activities/_components/ActivityShell';
import { siteUrl } from '@/utils/url';

// cache the activity details to avoid duplicated
Expand Down Expand Up @@ -72,5 +72,5 @@ export default async function ActivityPage({

if (!activity.data) redirect('/not-found');

return <ActivityDetailsShell activity={activity.data} />;
return <ActivityShell activity={activity.data} />;
}
4 changes: 2 additions & 2 deletions src/app/portal/activities/_components/ActivityShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { canAccessActivity, isInternal } from '@/utils/access-control';

const ActivityInfo = dynamic(
() =>
import('./ActivityInfo').then((mod) => ({
import('./ActivityDetails/ActivityInfo').then((mod) => ({
default: mod.ActivityInfo,
})),
{
Expand Down Expand Up @@ -80,4 +80,4 @@ function ActivityDetailsComponent({
);
}

export const ActivityDetailsShell = memo(ActivityDetailsComponent);
export const ActivityShell = memo(ActivityDetailsComponent);

0 comments on commit 69a3840

Please sign in to comment.