Skip to content

Commit

Permalink
test featured projects
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Rb3 committed May 12, 2024
1 parent db39073 commit 64d5171
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/components/Card/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const Card = (props: any) => {
if (!ready) return <CardSkeleton />;

return (
<div style={{ minHeight: "405px", height: "100%" }}>
<>
<Modals />
<RouteLink to={routesPath.PROJECT_DETAIL_TAB} params={{ projectId, ...(potId ? { potId } : {}) }}>
<CardContainer>
Expand Down Expand Up @@ -208,7 +208,7 @@ const Card = (props: any) => {
)}
</CardContainer>
</RouteLink>
</div>
</>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,16 @@ const FeaturedProjects = () => {
</>
);

const projectCards = (
// useMemo(
// () => (
<>
{projects.map((project: any) => {
return <Card key={project.registrant_id} projectId={project.registrant_id} />;
})}
</>
const projectCards = useMemo(
() => (
<>
{projects.map((project: any) => {
return <Card key={project.registrant_id} projectId={project.registrant_id} />;
})}
</>
),
[projects],
);
// ),
// [projects],
// );

return (
<ContainerHeader>
Expand Down

0 comments on commit 64d5171

Please sign in to comment.