This commit is contained in:
Vivian Phung 2024-02-26 22:55:32 -05:00
parent effa0bbf14
commit 6bfd1fc2dc
No known key found for this signature in database

View File

@ -8,10 +8,10 @@ import {
MenuList,
MenuItem,
Typography,
Avatar,
} from '@material-tailwind/react';
import { relativeTimeMs } from '../../utils/time';
import { Avatar } from 'components/shared/Avatar';
interface ProjectCardProps {
project: Project;
@ -21,11 +21,7 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ project }) => {
return (
<div className="bg-white border border-gray-200 rounded-lg shadow">
<div className="flex gap-2 p-2 items-center">
<Avatar
variant="rounded"
src={project.icon || '/gray.png'}
placeholder={''}
/>
<Avatar imageSrc={project.icon || '/gray.png'} rounded-full />
<div className="grow">
<Link to={`projects/${project.id}`}>
<Typography placeholder={''}>{project.name}</Typography>