diff --git a/src/features/Projects/Components/ProjectCardMini/ProjectCardMini.tsx b/src/features/Projects/Components/ProjectCardMini/ProjectCardMini.tsx index fd3c916..2e36019 100644 --- a/src/features/Projects/Components/ProjectCardMini/ProjectCardMini.tsx +++ b/src/features/Projects/Components/ProjectCardMini/ProjectCardMini.tsx @@ -1,41 +1,56 @@ -import { MdLocalFireDepartment } from "react-icons/md"; -import { numberFormatter } from "src/utils/helperFunctions"; import { ProjectCard } from "src/utils/interfaces"; - interface Props { - project: ProjectCard - onClick: (projectId: string) => void + project: ProjectCard; + onClick: (projectId: string) => void; } export default function ProjectCardMini({ project, onClick }: Props) { + const tag = project.tags?.[0]; + const logo = + project?.logo?.[0]?.["thumbnails"]?.["large"]?.url ?? + `https://avatars.dicebear.com/api/initials/${project.title}.svg`; - const tag = project.tags?.[0]; - const logo = project?.logo?.[0]['thumbnails']['large'].url ?? `https://avatars.dicebear.com/api/initials/${project.title}.svg` - - - return ( -
{project?.title}
-• {tag?.name}
- {/*+ {project?.title} +
++ + • + {" "} + {tag?.name} +
+ {/*