From 15f28f7eb8b22fdc1a97c858a246f620cd5e292d Mon Sep 17 00:00:00 2001 From: 2paperstar Date: Fri, 17 Nov 2023 00:56:18 +0900 Subject: [PATCH] chore: linter issue --- src/app/[lng]/mypage/MypageProfile.tsx | 66 +++++++++++++------------ src/app/[lng]/mypage/MypageSeperate.tsx | 17 +++---- src/app/[lng]/mypage/MypageTable.tsx | 36 +++++++------- 3 files changed, 61 insertions(+), 58 deletions(-) diff --git a/src/app/[lng]/mypage/MypageProfile.tsx b/src/app/[lng]/mypage/MypageProfile.tsx index 0f01e623..4510a6ab 100644 --- a/src/app/[lng]/mypage/MypageProfile.tsx +++ b/src/app/[lng]/mypage/MypageProfile.tsx @@ -12,11 +12,10 @@ interface MypageProfileProps { quit?: string; } - const Account = ({ size, color }: IconProps) => { - const sizeClass = size ? size : "h-6 w-6"; + const sizeClass = size ? size : 'h-6 w-6'; - const colorClass = color ? `text-${color}` : "text-gray-400"; + const colorClass = color ? `text-${color}` : 'text-gray-400'; return ( { ); }; -export default async function MypageProfile({ name, id, phone, email, logout='', quit=''}: MypageProfileProps) - -{ - - return ( -
-
-
INFO
-
- -

- {name}

-
-
-
- {id} -
-
- {email} -
-
-
- - -
+export default async function MypageProfile({ + name, + id, + phone, + email, + logout = '', + quit = '', +}: MypageProfileProps) { + return ( +
+
+
INFO
+
+ +

+ {name} +

+
+
+
+ {id} +
+
+ {email} +
+
+
+ +
- ); - }; - - \ No newline at end of file +
+ ); +} diff --git a/src/app/[lng]/mypage/MypageSeperate.tsx b/src/app/[lng]/mypage/MypageSeperate.tsx index 82bf1352..8b60e468 100644 --- a/src/app/[lng]/mypage/MypageSeperate.tsx +++ b/src/app/[lng]/mypage/MypageSeperate.tsx @@ -1,10 +1,9 @@ const MypageSeperate = () => { - return ( -
-
-
-
- ); - }; - - export default MypageSeperate; \ No newline at end of file + return ( +
+
+
+ ); +}; + +export default MypageSeperate; diff --git a/src/app/[lng]/mypage/MypageTable.tsx b/src/app/[lng]/mypage/MypageTable.tsx index 96eb118f..232d2668 100644 --- a/src/app/[lng]/mypage/MypageTable.tsx +++ b/src/app/[lng]/mypage/MypageTable.tsx @@ -1,5 +1,6 @@ -import LazyCat from "@/assets/lazy-cat.svg"; -import dayjs from "dayjs"; +import dayjs from 'dayjs'; + +import LazyCat from '@/assets/lazy-cat.svg'; // interface Tag { // id: number; @@ -35,24 +36,23 @@ interface UnderLinedTextProps { const UnderLinedText = ({ text }: UnderLinedTextProps) => { return ( -
- {text} -
+
{text}
); }; -const MypageTable = ({ - title, articles, link, noArticle, totalList }: MypageTableProps, - ) => { - +const MypageTable = ({ + title, + articles, + link, + noArticle, + totalList, +}: MypageTableProps) => { return (
-
- {title} -
+
{title}
@@ -64,8 +64,8 @@ const MypageTable = ({ {articles.length > 0 && articles.map((articleObj, index) => { const isLastRow = index === articles.length - 1; - const borderBottomRadius = isLastRow ? "10px" : "0px"; - const underLine = isLastRow ? "" : "border-b border-gray-300"; + const borderBottomRadius = isLastRow ? '10px' : '0px'; + const underLine = isLastRow ? '' : 'border-b border-gray-300'; return (
-
+
- {dayjs(articleObj.createdAt).format("YYYY-MM-DD")} + {dayjs(articleObj.createdAt).format('YYYY-MM-DD')}
@@ -99,4 +101,4 @@ const MypageTable = ({ ); }; -export default MypageTable; \ No newline at end of file +export default MypageTable;