diff --git a/.eslintrc.json b/.eslintrc.json index 99754607..d26019a2 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -69,6 +69,7 @@ "object-curly-newline": [2, { "minProperties": 4, "consistent": true }], "brace-style": 2, "no-multiple-empty-lines": 2, - "eol-last": [2, "always"] + "eol-last": [2, "always"], + "no-nested-ternary": 2 } } diff --git a/src/components/Avatar.tsx b/src/components/Avatar.tsx index 68bdb325..e9747b27 100644 --- a/src/components/Avatar.tsx +++ b/src/components/Avatar.tsx @@ -3,18 +3,17 @@ import Image from "next/image"; interface AvatarProps { imgPath?: string; width?: number; - height?: number + height?: number; } -export default function Avatar({ imgPath = "/grey_ball.png", width = 24, height = 24 }: AvatarProps) { +export default function Avatar({ + imgPath = "/grey_ball.png", + width = 24, + height = 24, +}: AvatarProps) { return (
- Profile image + Profile image
); } diff --git a/src/components/navbar/DropDown.tsx b/src/components/navbar/DropDown.tsx index 1eb18e16..5a2d7403 100644 --- a/src/components/navbar/DropDown.tsx +++ b/src/components/navbar/DropDown.tsx @@ -23,7 +23,11 @@ export default function DropDown({ name }: { name: string }) { diff --git a/src/components/navbar/DropDownLink.tsx b/src/components/navbar/DropDownLink.tsx index 6466ad69..88928282 100644 --- a/src/components/navbar/DropDownLink.tsx +++ b/src/components/navbar/DropDownLink.tsx @@ -6,8 +6,18 @@ interface DropDownLinkProps { handleClick: () => void; } -export default function DropDownLink({ title, href = "#", handleClick }: DropDownLinkProps) { +export default function DropDownLink({ + title, + href = "#", + handleClick, +}: DropDownLinkProps) { return ( - {title} + + {title} + ); }