Skip to content

Commit

Permalink
fix: removed project id attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
FaZeRs committed Dec 29, 2024
1 parent af5f6a3 commit 57aec5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/app/_components/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function Projects({ projects }: Readonly<ProjectsProps>) {
className="grid grid-cols-1 gap-8 sm:grid-cols-2"
>
{projects.map((project) => (
<ProjectCard key={project.id} project={project} />
<ProjectCard key={project.slug} project={project} />
))}
</motion.div>
);
Expand Down
9 changes: 3 additions & 6 deletions apps/web/src/constants/projects-data.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export const projectsData = [
import type { Project } from "~/types/project";

export const projectsData: Project[] = [
{
id: 1,
title: "Portfolio",
slug: "portfolio",
description:
Expand Down Expand Up @@ -115,7 +116,6 @@ The website is deployed on Vercel with:
],
},
{
id: 2,
title: "LLM Chat",
slug: "llm-chat",
description: "A chat application built with C++, Qt 6 and Ollama",
Expand Down Expand Up @@ -232,7 +232,6 @@ This project is licensed under the MIT License. See the LICENSE file for details
],
},
{
id: 3,
title: "cppup",
slug: "cppup",
description: "CLI tool for creating C++ projects",
Expand Down Expand Up @@ -330,7 +329,6 @@ This project is licensed under the MIT License
],
},
{
id: 4,
title: "Baltic Probiotics",
slug: "baltic-probiotics",
description: "Baltic Probiotics is a company that sells probiotics",
Expand Down Expand Up @@ -375,7 +373,6 @@ Baltic Probiotics is a e-commerce website for a company that sells probiotics. W
],
},
{
id: 5,
title: "Pūķarags",
slug: "pukarags",
description: "Pūķarags is a recreational complex",
Expand Down
1 change: 0 additions & 1 deletion apps/web/src/types/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export interface Stack {
}

export interface Project {
id: number;
title: string;
description: string;
content: string;
Expand Down

0 comments on commit 57aec5f

Please sign in to comment.