diff --git a/src/projects/components/project-details-cards/index.tsx b/src/projects/components/project-details-cards/index.tsx
index a9702990a..674be55b1 100644
--- a/src/projects/components/project-details-cards/index.tsx
+++ b/src/projects/components/project-details-cards/index.tsx
@@ -12,7 +12,7 @@ export const ProjectDetailsCards = ({ projects }: Props) => {
return (
{projects.map((project) => (
-
+
))}
);
diff --git a/src/projects/components/project-details-cards/project-details-card.tsx b/src/projects/components/project-details-cards/project-details-card.tsx
index cd3c28546..5f4f0c7ed 100644
--- a/src/projects/components/project-details-cards/project-details-card.tsx
+++ b/src/projects/components/project-details-cards/project-details-card.tsx
@@ -18,9 +18,10 @@ import { ProjectDetailsCardLinks } from './links';
interface Props {
project: ProjectAllInfo;
+ withActions?: boolean;
}
-export const ProjectDetailsCard = ({ project }: Props) => {
+export const ProjectDetailsCard = ({ project, withActions }: Props) => {
const { name, website, logo, description, chains } = project;
const src = getLogoUrl(website, logo);
@@ -62,11 +63,15 @@ export const ProjectDetailsCard = ({ project }: Props) => {
-
+ {withActions && (
+ <>
+
-
-
-
+
+
+
+ >
+ )}
);
};
diff --git a/src/projects/pages/project-params-page.tsx b/src/projects/pages/project-params-page.tsx
index f155fc2f2..d38c4b752 100644
--- a/src/projects/pages/project-params-page.tsx
+++ b/src/projects/pages/project-params-page.tsx
@@ -1,5 +1,7 @@
'use client';
+import dynamic from 'next/dynamic';
+
import { ROUTE_TABS } from '~/shared/core/constants';
import { useProjectDetails } from '~/projects/hooks/use-project-details';
@@ -16,8 +18,23 @@ export const ProjectParamsPage = ({ params: { id, tab } }: Props) => {
if (!data) return null;
- if (tab === ROUTE_TABS.SHARED.DETAILS) return ProjectDetailsCard
;
- if (tab === ROUTE_TABS.SHARED.ORG) return ProjectOrgCard
;
+ if (tab === ROUTE_TABS.SHARED.DETAILS) {
+ return ;
+ }
+
+ if (tab === ROUTE_TABS.SHARED.ORG) {
+ return ;
+ }
return null;
};
+
+const ProjectDetailsCard = dynamic(() =>
+ import(
+ '~/projects/components/project-details-cards/project-details-card'
+ ).then((m) => m.ProjectDetailsCard),
+);
+
+const OrgDetailsCard = dynamic(() =>
+ import('~/orgs/components/org-details-card').then((m) => m.OrgDetailsCard),
+);