Skip to content

Commit

Permalink
refactor: (#55) styled component 변수명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
inyeong-kang committed Jul 18, 2023
1 parent 3a1be5a commit 19721cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/PostForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,19 @@ export default function PostForm({ data, mutate, isError, error }: PostFormProps
{isOpen && (
<Modal size="sm" onModalClose={closeComponent}>
<>
<S.Header>
<S.ModalHeader>
<h3>마감 시간 선택</h3>
<S.CloseButton onClick={closeComponent}>X</S.CloseButton>
</S.Header>
<S.Body>
</S.ModalHeader>
<S.ModalBody>
<S.Description>최대 3일을 넘을 수 없습니다.</S.Description>
<TimePickerOptionList time={time} setTime={setTime} />
<S.ResetButtonWrapper>
<SquareButton onClick={handleResetBUtton} theme="blank">
초기화
</SquareButton>
</S.ResetButtonWrapper>
</S.Body>
</S.ModalBody>
</>
</Modal>
)}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/PostForm/style.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { styled } from 'styled-components';

export const Header = styled.div`
export const ModalHeader = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
Expand All @@ -13,7 +13,7 @@ export const Header = styled.div`
font-weight: bold;
`;

export const Body = styled.div`
export const ModalBody = styled.div`
display: flex;
flex-direction: column;
justify-content: start;
Expand Down

0 comments on commit 19721cb

Please sign in to comment.