change: vote btn in projectCardMini to static text

This commit is contained in:
MTG2000
2022-05-31 09:13:04 +03:00
parent 9134bd4329
commit f481342b5c
2 changed files with 7 additions and 3 deletions

View File

@@ -36,7 +36,11 @@ export default function ProjectCardMini({ project, onClick }: Props) {
<p className="text-body5 text-gray-600 font-light my-[5px]">{project.category.title}</p>
{/* <span className="chip-small bg-warning-50 text-yellow-700 font-light text-body5 py-[3px] px-10"> <MdLocalFireDepartment className='inline-block text-fire transform text-body4 align-middle' /> {numberFormatter(project.votes_count)} </span> */}
</div>
<VoteButton votes={project.votes_count} direction='vertical' dense onVote={vote}></VoteButton>
{/* <VoteButton votes={project.votes_count} direction='vertical' dense onVote={vote}></VoteButton> */}
<div className="flex flex-col text-gray-500 items-center">
<MdLocalFireDepartment className="text-gray-400" />
<span>{numberFormatter(project.votes_count)}</span>
</div>
</div>
);
}

View File

@@ -31,7 +31,7 @@ const responsive = {
// }
function calcNumItems() {
const items = (((window.innerWidth - 2 * 32) / (300 + 20)));
const items = (((window.innerWidth - 2 * 32) / (296 + 20)));
return items;
}
@@ -112,7 +112,7 @@ export default function ProjectsRow({ title, link, projects }: Props) {
}
>
{projects.map((project, idx) =>
<div key={project.id} className='max-w-[300px]' >
<div key={project.id} className='max-w-[296px]' >
<ProjectCardMini project={project} onClick={handleClick} />
</div>
)}