mirror of
https://github.com/snowball-tools/snowballtools-base
synced 2025-01-23 00:19:06 +00:00
avatar
This commit is contained in:
parent
effa0bbf14
commit
6bfd1fc2dc
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user