Skip to content

Commit

Permalink
fix: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneMoroz committed Sep 20, 2024
1 parent 8bb7562 commit f5f967f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function VoteCard({ projectIdeaId, users, className }: VoteCardProps) {

return (
<div className={cn("w-[200px] rounded-lg bg-base-100", className)}>
<section className="flex flex-col items-start p-4 gap-y-4">
<section className="flex flex-col items-start gap-y-4 p-4">
<h1 className="text-3xl font-semibold text-base-300">{users.length}</h1>
<h2 className="text-xl font-semibold text-base-300">{`Vote${
users.length > 1 ? "s" : ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,21 +233,21 @@ export default function TechStackCard({ title, data }: TechStackCardProps) {
</span>
</div>
{/**TODO Refactor this beast into smaller more module pieces. */}
<div className="h-40 p-1 mt-6 overflow-y-auto">
<div className="mt-6 h-40 overflow-y-auto p-1">
<ul className="text-base-300">
{data.map((element) => {
const voteIsSubmitted = element.teamTechStackItemVotes.find(
(item) => item.votedBy.member.id === userId,
);
return (
<li
className="relative grid items-center grid-cols-6 mb-8 mr-2 text-base"
className="relative mb-8 mr-2 grid grid-cols-6 items-center text-base"
key={element.id}
>
{editItemId === element.id ? (
<form
onSubmit={handleSubmitEdit(() => handleEdit(element.id))}
className="h-12 col-span-6 -my-2"
className="col-span-6 -my-2 h-12"
ref={editRef}
>
<TextInput
Expand Down Expand Up @@ -308,7 +308,7 @@ export default function TechStackCard({ title, data }: TechStackCardProps) {
{voteIsSubmitted ? (
<div className="relative col-span-2 flex w-[180px] items-center justify-end">
{element.teamTechStackItemVotes.length < 2 && (
<div className="w-1/6 h-1/6">
<div className="h-1/6 w-1/6">
<EllipsisVerticalIcon
className="mr-2 rounded-xl hover:cursor-pointer hover:bg-base-100"
onClick={() => setOpenMenuId(element.id)}
Expand Down Expand Up @@ -352,7 +352,7 @@ export default function TechStackCard({ title, data }: TechStackCardProps) {
<div className="px-3.5 py-2.5">
<Button
variant="outline"
className="justify-center w-full border-2"
className="w-full justify-center border-2"
onClick={toggleAddItemInput}
>
Add Tech Stack
Expand Down

0 comments on commit f5f967f

Please sign in to comment.