Skip to content

Commit

Permalink
Merge branch 'comment/#87' into Community_list/#92
Browse files Browse the repository at this point in the history
  • Loading branch information
Brokyeom committed Jul 19, 2022
2 parents 177957f + a55bdb1 commit 48ec781
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
13 changes: 3 additions & 10 deletions components/community/Reply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function Reply() {
};

const handleInputColor = () => {
replyText.length === 0 ? setInputColor(false) : setInputColor(true);
setInputColor(replyText.length !== 0);
};

return (
Expand Down Expand Up @@ -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};
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/community/ReplyContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion types/community.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface ImgData {
export interface ReplyData {
userNickname?: string;
content: string;
createdAt?: string;
createdAt: string;
}
// 커뮤니티 데이터
export interface CommunityData {
Expand Down

0 comments on commit 48ec781

Please sign in to comment.