Skip to content

Commit

Permalink
feat-fe: Date Picker 이벤트 발생 컴포넌트 변경 (#442)
Browse files Browse the repository at this point in the history
Co-authored-by: Jeongwoo Park <[email protected]>
  • Loading branch information
2 people authored and seongjinme committed Aug 23, 2024
1 parent 7e36876 commit 8c29d96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/common/DateInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function DateInput({ label, innerText, ...props }: DateInputProps
};

return (
<S.Container>
<S.Container onClick={handleIconClick}>
<S.Wrapper>
<S.Label>{label}</S.Label>
<S.Text>{innerText}</S.Text>
Expand All @@ -33,7 +33,6 @@ export default function DateInput({ label, innerText, ...props }: DateInputProps
outline={false}
size="sm"
color="white"
onClick={handleIconClick}
>
<S.Icon>
<MdCalendarMonth size="2rem" />
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/components/common/DateInput/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const Container = styled.div`
width: 100%;
position: relative;
cursor: pointer;
`;

const Wrapper = styled.div`
Expand All @@ -31,8 +32,8 @@ const Text = styled.span`
const Input = styled.input`
${hiddenStyles}
position: absolute;
top: 3rem;
right: 3rem;
top: 3.5rem;
right: 22rem;
`;

const Icon = styled.div`
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/common/IconButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function IconButton({
size = 'sm',
outline = true,
shape = 'round',
type,
type = 'button',
onClick,
children,
}: PropsWithChildren<IconButtonProps>) {
Expand Down

0 comments on commit 8c29d96

Please sign in to comment.