mirror of
https://github.com/snowball-tools/snowballtools-base
synced 2025-07-31 12:12:08 +00:00
Merge 6bfd1fc2dc
into ab72bbb03f
This commit is contained in:
commit
58ff07b4ee
@ -8,10 +8,10 @@ import {
|
|||||||
MenuList,
|
MenuList,
|
||||||
MenuItem,
|
MenuItem,
|
||||||
Typography,
|
Typography,
|
||||||
Avatar,
|
|
||||||
} from '@material-tailwind/react';
|
} from '@material-tailwind/react';
|
||||||
|
|
||||||
import { relativeTimeMs } from '../../utils/time';
|
import { relativeTimeMs } from '../../utils/time';
|
||||||
|
import { Avatar } from 'components/shared/Avatar';
|
||||||
|
|
||||||
interface ProjectCardProps {
|
interface ProjectCardProps {
|
||||||
project: Project;
|
project: Project;
|
||||||
@ -21,11 +21,7 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ project }) => {
|
|||||||
return (
|
return (
|
||||||
<div className="bg-white border border-gray-200 rounded-lg shadow">
|
<div className="bg-white border border-gray-200 rounded-lg shadow">
|
||||||
<div className="flex gap-2 p-2 items-center">
|
<div className="flex gap-2 p-2 items-center">
|
||||||
<Avatar
|
<Avatar imageSrc={project.icon || '/gray.png'} rounded-full />
|
||||||
variant="rounded"
|
|
||||||
src={project.icon || '/gray.png'}
|
|
||||||
placeholder={''}
|
|
||||||
/>
|
|
||||||
<div className="grow">
|
<div className="grow">
|
||||||
<Link to={`projects/${project.id}`}>
|
<Link to={`projects/${project.id}`}>
|
||||||
<Typography placeholder={''}>{project.name}</Typography>
|
<Typography placeholder={''}>{project.name}</Typography>
|
||||||
|
Loading…
Reference in New Issue
Block a user