From c2d20200a3e95065bb6dd449ae4dc3fabe8d792d Mon Sep 17 00:00:00 2001 From: Brokyeom Date: Tue, 19 Jul 2022 16:30:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[=20=20code=20review=20=20]=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=EB=A6=AC=EB=B7=B0=20=EB=B0=98=EC=98=81=20/=20?= =?UTF-8?q?=EC=BB=A8=EB=B2=A4=EC=85=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/community/Reply.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/components/community/Reply.tsx b/components/community/Reply.tsx index 1ff3fe7..3a2b9f1 100644 --- a/components/community/Reply.tsx +++ b/components/community/Reply.tsx @@ -11,7 +11,7 @@ export default function Reply() { }; const handleInputColor = () => { - replyText.length === 0 ? setInputColor(false) : setInputColor(true); + setInputColor(replyText.length !== 0); }; return ( @@ -102,11 +102,6 @@ const StInputContent = styled.div<{ inputColor: boolean }>` width: 67.6rem; height: 4.2rem; - font-style: normal; - font-weight: 400; - font-size: 21.3762px; - line-height: 31px; - color: ${({ theme }) => theme.colors.black}; ${({ theme }) => theme.fonts.b4_15_regular_146}; @@ -131,12 +126,10 @@ const StInputBtn = styled.span<{ inputColor: boolean }>` width: 7.6rem; height: 4.2rem; - color: ${({ theme, inputColor }) => - !inputColor ? theme.colors.gray006 : theme.colors.white}; - background-color: ${({ theme, inputColor }) => !inputColor ? theme.colors.gray003 : theme.colors.mainDarkgreen}; - + color: ${({ theme, inputColor }) => + !inputColor ? theme.colors.gray006 : theme.colors.white}; ${({ theme }) => theme.fonts.b2_18_medium_130}; border-radius: 0.5rem; From a55bdb1e2615ce5a33694680a0ce6122ce738de4 Mon Sep 17 00:00:00 2001 From: Brokyeom Date: Tue, 19 Jul 2022 16:43:19 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[=20=20code=20review=20=20]=20ReplyData=20?= =?UTF-8?q?=EC=98=B5=EC=85=94=EB=84=90=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/community/ReplyContent.tsx | 2 +- types/community.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/community/ReplyContent.tsx b/components/community/ReplyContent.tsx index 1c7260a..2bad045 100644 --- a/components/community/ReplyContent.tsx +++ b/components/community/ReplyContent.tsx @@ -3,7 +3,7 @@ import styled from '@emotion/styled'; interface ReplyContentProps { userNickname?: string; content: string; - createdAt?: string; + createdAt: string; } export default function ReplyContent(props: ReplyContentProps) { diff --git a/types/community.ts b/types/community.ts index 0840e8e..28bbacf 100644 --- a/types/community.ts +++ b/types/community.ts @@ -6,7 +6,7 @@ export interface ImgData { export interface ReplyData { userNickname?: string; content: string; - createdAt?: string; + createdAt: string; } // 커뮤니티 데이터 export interface CommunityData {