Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] 검색 입력 #32

Merged
merged 3 commits into from
Jul 31, 2024
Merged

[FEAT] 검색 입력 #32

merged 3 commits into from
Jul 31, 2024

Conversation

chunzhi23
Copy link
Contributor

작성자: @chunzhi23
Issue: #5

체크 리스트

  • 적절한 제목으로 수정했나요?
  • 상단에 이슈 번호를 기입했나요?
  • Target Branch를 올바르게 설정했나요?
  • Label을 알맞게 설정했나요?

작업 내역

  • 검색 입력 컴포넌트 코드를 작성했습니다.

비고

  • 컴포넌트 배경 색깔을 지정하지 못했습니다. 함께 코딩하면서 맞춰나가면 좋을 것 같습니다.

@chunzhi23 chunzhi23 added the feat label Jul 21, 2024
@chunzhi23 chunzhi23 self-assigned this Jul 21, 2024
Copy link

Copy link

Copy link
Member

@hynseok hynseok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

간단한 수정사항 있으니 확인 부탁드립니다!

import { Input, InputProps } from "@mantine/core";

export function SearchInput({ placeholder, ...props }: InputProps & { placeholder?: string }) {
return <Input placeholder={placeholder} {...props} />;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftSection에 검색 아이콘을 고정해두는게 좋을 것 같아요. icon 크기도 props에 담아서 조절할 수 있도록 하면 좋을 것 같습니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

넵 그렇게 수정했습니다!
iconSize 기본값은 16으로 설정해두었습니다

@moony1204 moony1204 self-requested a review July 26, 2024 05:53
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아이콘을 leftsection으로 한다면 아이콘 hover 상태일 때 커서 모양 바뀌게 하면 좋을 거 같습니다

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mantine에서 가져온 Input 컴포넌트인데 icon이 있는 곳까지 text area로 판정하는 것 같아서 안 되는 것 같습니다ㅠㅜ

Copy link
Contributor

@moony1204 moony1204 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

background color 지정도 되면 좋을 듯 합니다

Copy link

@chunzhi23
Copy link
Contributor Author

background color 지정도 되면 좋을 듯 합니다

mantine에서 기본적으로 설정한 배경색을 사용했습니다!

@chunzhi23 chunzhi23 requested a review from hynseok July 27, 2024 04:37
Copy link
Member

@hynseok hynseok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다🙇🏻‍♂️

@chunzhi23 chunzhi23 merged commit b5ad271 into develop Jul 31, 2024
1 check passed
@hynseok hynseok deleted the feat/5-search_input branch August 10, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants