diff --git a/src/jobs/components/job-project-cards.tsx b/src/jobs/components/job-project-cards.tsx
index 3392a53d3..a9b22259b 100644
--- a/src/jobs/components/job-project-cards.tsx
+++ b/src/jobs/components/job-project-cards.tsx
@@ -1,6 +1,5 @@
import { JobDetails } from '~/jobs/core/schemas';
-
-import { JobProjectCard } from './job-project-card';
+import { ProjectDetailsCards } from '~/projects/components/project-details-cards';
interface Props {
job: JobDetails;
@@ -13,11 +12,5 @@ export const JobProjectCards = ({ job }: Props) => {
if (!projects.length) return null;
- return (
-
- {projects.map((project) => (
-
- ))}
-
- );
+ return ;
};
diff --git a/src/jobs/pages/job-params-page.tsx b/src/jobs/pages/job-params-page.tsx
index 848bcf360..5e0fa3f3b 100644
--- a/src/jobs/pages/job-params-page.tsx
+++ b/src/jobs/pages/job-params-page.tsx
@@ -28,7 +28,8 @@ const getPageContent = (job: JobDetails, tab: string) => {
if (tab === ROUTE_TABS.SHARED.DETAILS) return ;
if (tab === ROUTE_TABS.SHARED.ORG)
return ;
- if (tab === ROUTE_TABS.JOBS.PROJECTS) return ;
+ if (tab === ROUTE_TABS.JOBS.PROJECTS)
+ return ;
if (tab === ROUTE_TABS.JOBS.COMPETITORS) {
return ;
@@ -48,8 +49,10 @@ const OrgDetailsCard = dynamic(() =>
import('~/orgs/components/org-details-card').then((m) => m.OrgDetailsCard),
);
-const JobProjectCards = dynamic(() =>
- import('~/jobs/components/job-project-cards').then((m) => m.JobProjectCards),
+const ProjectDetailsCards = dynamic(() =>
+ import('~/projects/components/project-details-cards').then(
+ (m) => m.ProjectDetailsCards,
+ ),
);
const JobCompetitorCards = dynamic(() =>
diff --git a/src/orgs/pages/org-params-page.tsx b/src/orgs/pages/org-params-page.tsx
index 7363fcec2..4fa7060bc 100644
--- a/src/orgs/pages/org-params-page.tsx
+++ b/src/orgs/pages/org-params-page.tsx
@@ -4,6 +4,7 @@ import { ROUTE_TABS } from '~/shared/core/constants';
import { useOrgDetails } from '~/orgs/hooks/use-org-details';
import { OrgDetailsCard } from '~/orgs/components/org-details-card';
+import { ProjectDetailsCards } from '~/projects/components/project-details-cards';
interface Props {
params: {
@@ -18,7 +19,8 @@ export const OrgParamsPage = ({ params: { id, tab } }: Props) => {
if (!data) return null;
if (tab === ROUTE_TABS.SHARED.DETAILS) return ;
- if (tab === ROUTE_TABS.ORGS.PROJECTS) return OrgProjectsCard
;
+ if (tab === ROUTE_TABS.ORGS.PROJECTS)
+ return ;
if (tab === ROUTE_TABS.ORGS.JOBS) return OrgJobsCard
;
if (tab === ROUTE_TABS.ORGS.REVIEWS) return OrgReviewsCard
;
diff --git a/src/projects/components/project-details-cards/index.tsx b/src/projects/components/project-details-cards/index.tsx
new file mode 100644
index 000000000..a9702990a
--- /dev/null
+++ b/src/projects/components/project-details-cards/index.tsx
@@ -0,0 +1,19 @@
+import { ProjectAllInfo } from '~/shared/core/schemas';
+
+import { ProjectDetailsCard } from './project-details-card';
+
+interface Props {
+ projects: ProjectAllInfo[];
+}
+
+export const ProjectDetailsCards = ({ projects }: Props) => {
+ if (!projects.length) return null;
+
+ return (
+
+ {projects.map((project) => (
+
+ ))}
+
+ );
+};
diff --git a/src/jobs/components/job-project-card/links.tsx b/src/projects/components/project-details-cards/links.tsx
similarity index 91%
rename from src/jobs/components/job-project-card/links.tsx
rename to src/projects/components/project-details-cards/links.tsx
index 623e84b39..327a5a176 100644
--- a/src/jobs/components/job-project-card/links.tsx
+++ b/src/projects/components/project-details-cards/links.tsx
@@ -8,7 +8,7 @@ interface Props {
project: ProjectAllInfo;
}
-export const JobProjectCardLinks = ({ project }: Props) => {
+export const ProjectDetailsCardLinks = ({ project }: Props) => {
const tags = createSocialsInfoTagProps(project);
if (!tags.length) return null;
diff --git a/src/jobs/components/job-project-card/index.tsx b/src/projects/components/project-details-cards/project-details-card.tsx
similarity index 93%
rename from src/jobs/components/job-project-card/index.tsx
rename to src/projects/components/project-details-cards/project-details-card.tsx
index 8c47bbd19..cd3c28546 100644
--- a/src/jobs/components/job-project-card/index.tsx
+++ b/src/projects/components/project-details-cards/project-details-card.tsx
@@ -14,13 +14,13 @@ import { LogoTitle } from '~/shared/components/logo-title';
import { ShareButton } from '~/shared/components/share-button';
import { Text } from '~/shared/components/text';
-import { JobProjectCardLinks } from './links';
+import { ProjectDetailsCardLinks } from './links';
interface Props {
project: ProjectAllInfo;
}
-export const JobProjectCard = ({ project }: Props) => {
+export const ProjectDetailsCard = ({ project }: Props) => {
const { name, website, logo, description, chains } = project;
const src = getLogoUrl(website, logo);
@@ -40,7 +40,7 @@ export const JobProjectCard = ({ project }: Props) => {
-
+