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

[김미소] week12 #382

Merged
merged 6 commits into from
May 7, 2024
Merged

[김미소] week12 #382

merged 6 commits into from
May 7, 2024

Conversation

nightowlzz
Copy link
Collaborator

요구사항

기본

  • 'folder.tsx' 중 “url”, “title”, “description”에 검색어가 포함된 링크들만 필터해서 보이게 작업
  • 인풋의 x 버튼을 클릭하면 입력값이 없는 상태로
  • 전체적인 파일 수정

심화

  • 못했습니다..

주요 변경사항

@nightowlzz
Copy link
Collaborator Author

3b9d7fb
0d7cfc9

2개 봐주시면 됩니다. 감사합니다!

@nightowlzz nightowlzz requested a review from devToram May 5, 2024 12:59
@nightowlzz nightowlzz added 매운맛🔥 뒤는 없습니다. 그냥 필터 없이 말해주세요. 책임은 제가 집니다. 미완성🫠 죄송합니다.. labels May 5, 2024
Copy link
Collaborator

@devToram devToram left a comment

Choose a reason for hiding this comment

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

그동안 정말 수고하셨어요 👍
감사합니다 :)

@@ -3,7 +3,7 @@ interface IButtonModule {
children: React.ReactNode;
$btnClass: string;
$BeforButtonIcon?: string;
$id?: string;
$id?: string | number;
Copy link
Collaborator

Choose a reason for hiding this comment

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

string | number 이면 사실상 아주 광범위한 범위라서 아예 string 또는 number 로 박아두고,
button컴포넌트를 사용하는 곳들에서 타입을 맞춰서 넣어주는 걸 추천드려요!

)}
</>
<>
<div style={{position:'relative'}}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

특별한 경우가 아니라면 인라인 스타일은 지양해주세요!

const { value: contant, isLoading: contantLoading } =
useFatchDataLoad<IFolderContentApi>(dynamicAPI);
const [search, setSearch] = useState<any>();
const [searchContatn, setSearchContant] = useState<any>();
Copy link
Collaborator

Choose a reason for hiding this comment

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

any 는 왠만하면 지양해주세요!

Suggested change
const [searchContatn, setSearchContant] = useState<any>();
const [searchContant, setSearchContant] = useState<string>();

<div>
</FolderContainHead>

{loading ?
Copy link
Collaborator

Choose a reason for hiding this comment

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

의미상으로 loading 이면 이 와야하는데 반대로 적혀있네요!

useFatchDataLoad<IFolderContentApi>(`${FOLDER_CONTANT_LIST_API}?folderId=${id}`);

const filter = menus?.data.some(data => `${data.id}` === id)
if(filter === false) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if(filter === false) {
if(!filter) {

@devToram devToram merged commit 8798245 into codeit-bootcamp-frontend:part2-김미소 May 7, 2024
1 check passed
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.

2 participants