Skip to content

Commit b809733

Browse files
[autofix.ci] apply automated fixes
1 parent 6a2a671 commit b809733

File tree

8 files changed

+16
-10
lines changed

8 files changed

+16
-10
lines changed

fundamentals/today-i-learned/src/components/features/discussions/PostDetail/CommentsSection.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ interface CommentsSectionProps {
77
discussionId: string;
88
}
99

10-
export function CommentsSection({ comments, discussionId }: CommentsSectionProps) {
10+
export function CommentsSection({
11+
comments,
12+
discussionId
13+
}: CommentsSectionProps) {
1114
return (
1215
<div className={commentsSection}>
1316
<CommentList comments={comments} discussionId={discussionId} />
@@ -18,4 +21,4 @@ export function CommentsSection({ comments, discussionId }: CommentsSectionProps
1821
const commentsSection = css({
1922
display: "flex",
2023
flexDirection: "column"
21-
});
24+
});

fundamentals/today-i-learned/src/components/features/discussions/PostDetail/ContentBody.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ export function ContentBody({
2323
<PostReactions discussionDetail={discussionDetail} />
2424
</>
2525
);
26-
}
26+
}

fundamentals/today-i-learned/src/components/features/discussions/PostDetail/PostContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ const markdownContent = css({
4343
lineHeight: "160%",
4444
letterSpacing: "-0.4px",
4545
color: "rgba(0, 0, 0, 0.8)"
46-
});
46+
});

fundamentals/today-i-learned/src/components/features/discussions/PostDetail/PostHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ const timeStamp = css({
8484
lineHeight: "130%",
8585
letterSpacing: "-0.4px",
8686
color: "rgba(0, 0, 0, 0.4)"
87-
});
87+
});

fundamentals/today-i-learned/src/components/features/discussions/PostDetail/PostReactions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ export function PostReactions({ discussionDetail }: PostReactionsProps) {
2727
variant="detail"
2828
/>
2929
);
30-
}
30+
}

fundamentals/today-i-learned/src/hooks/usePostReactions.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export function usePostReactions({ discussion }: UsePostReactionsParams = {}) {
5555
DISCUSSIONS_QUERY_KEYS.detail(targetId)
5656
);
5757

58-
if (!currentData) {return;}
58+
if (!currentData) {
59+
return;
60+
}
5961

6062
const isCurrentlyReacted = hasUserReacted(currentData, "HEART");
6163

@@ -134,7 +136,9 @@ export function usePostReactions({ discussion }: UsePostReactionsParams = {}) {
134136
DISCUSSIONS_QUERY_KEYS.detail(targetId)
135137
);
136138

137-
if (!currentData) {return;}
139+
if (!currentData) {
140+
return;
141+
}
138142

139143
const isCurrentlyReacted = hasUserReacted(currentData, "THUMBS_UP");
140144

fundamentals/today-i-learned/src/pages/post/PostDetailPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export function PostDetailPage() {
3232
);
3333
}
3434

35-
3635
const gridLayout = css({
3736
display: "grid",
3837
gridTemplateColumns: { base: "1fr", lg: "5fr 3fr" },

fundamentals/today-i-learned/src/utils/formatTimeAgo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ export function formatTimeAgo(dateString: string): string {
1313
return `${Math.floor(diffInSeconds / 3600)}시간 전`;
1414
}
1515
return `${Math.floor(diffInSeconds / 86400)}일 전`;
16-
}
16+
}

0 commit comments

Comments
 (0)