Skip to content

Commit

Permalink
chore: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
marktlinn committed Sep 7, 2023
1 parent 5bff4eb commit 1f45e78
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
4 changes: 3 additions & 1 deletion src/app/ideation/components/VoteCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ function VoteCard({ users, voted }: VoteCardProps) {
<h1 className="text-3xl font-semibold text-neutral-focus">
{users.length}
</h1>
<h2 className="text-xl font-semibold text-neutral-focus">{`Vote${users.length > 1 ? "s" : ""}`}</h2>
<h2 className="text-xl font-semibold text-neutral-focus">{`Vote${
users.length > 1 ? "s" : ""
}`}</h2>
<div className="avatar-group -space-x-2 w-full">
{users.map((user) => (
<Avatar width={24} height={24} key={user} />
Expand Down
6 changes: 5 additions & 1 deletion src/components/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ interface AvatarProps {
height: number;
}

export default function Avatar({ image, width = 24, height = 24 }: AvatarProps) {
export default function Avatar({
image,
width = 24,
height = 24,
}: AvatarProps) {
return (
<div className="px-0 pointer-events-none rounded-full">
<Image
Expand Down
19 changes: 11 additions & 8 deletions src/components/navbar/DropDown.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import DropDownLink from "./DropDownLink";

export default function DropDown({ name }: { name: string }) {

return (
<div className="dropdown py-0 mx-1 dropdown-bottom">
<label tabIndex={0} className="btn m-0 p-0 bg-transparent border-none hover:border-none hover:bg-transparent">{ name }</label>
<ul tabIndex={0} className="dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box right-0">
<label
tabIndex={0}
className="btn m-0 p-0 bg-transparent border-none hover:border-none hover:bg-transparent"
>
{name}
</label>
<ul
tabIndex={0}
className="dropdown-content z-[1] menu p-2 shadow bg-base-100 rounded-box right-0"
>
<DropDownLink title="Link 1" />
<DropDownLink
title="404???"
href="/hello404"
/>
<DropDownLink title="404???" href="/hello404" />
</ul>
</div>

);
}
5 changes: 1 addition & 4 deletions src/components/navbar/DropDownLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ interface DropDownLinkProps {
href?: string;
}

export default function DropDownLink({
title,
href = "#",
}: DropDownLinkProps) {
export default function DropDownLink({ title, href = "#" }: DropDownLinkProps) {
return (
<li>
<Link
Expand Down

0 comments on commit 1f45e78

Please sign in to comment.