Skip to content

Conversation

@endmoseung
Copy link
Contributor

작업 내용

assets 절대경로가 추가되지 않아서 이를 tsconfig에서 추가했고, 뒤로가기 버튼을 만들었는데 이때 svg파일을 figma에서 가져와서 저장

참고 이미지(선택)

어떤 점을 리뷰 받고 싶으신가요?

뒤로가기 라우팅을 즉시실행함수로 안하고 handle~로 했는데 즉시실행함수로 하는게 더 가독성이 좋을지 ?

-assets 절대경로 누락된거 tsconfig에 추가
-뒤로가기 버튼 추가, 해당 svg 파일 저장
Copy link
Member

@sookyeonghwang sookyeonghwang left a comment

Choose a reason for hiding this comment

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

모승 수고하셨습니다!

우선 제 스타일대로 리뷰를 남겼습니다!
앞으로도 너무 리뷰가 빡세다고 생각하시면 댓글 부탁드려요!
느슨하게 하자고 했는데 어느정도로 해야 하는지 감이 안와서 남깁니다!

감사합니다!


function BackButton() {
const navigate = useNavigate()
const locateBack = () => {
Copy link
Member

@sookyeonghwang sookyeonghwang Dec 20, 2022

Choose a reason for hiding this comment

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

함수명으로 handleLocateBack은 어떠신가요?
저는 보통 컴포넌트에 props로 데이터를 넘길 떄는 on 접두사, 아닌 경우엔 모두 handle이라는 접두사를 사용합니다!

on vs handle <- 이벤트 핸들러 네이밍에 대한 링크입니다.

Copy link
Member

Choose a reason for hiding this comment

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

워터 의견 좋은 것 같아요

Copy link
Contributor Author

Choose a reason for hiding this comment

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

handle붙이는게 의미상 더 맞는것 같아요 정말 좋은거 배워갑니당:)


return (
<div onClick={locateBack}>
<Back></Back>
Copy link
Member

Choose a reason for hiding this comment

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

저는 children이 없는 경우는 <Back />으로 한번에 쓰는 것을 선호합니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

항상 습관적으로 어떤걸 만들떄 외부에 div를 삽입했었는데 굳이 그럴필욛가 없겠네요 감사합니다! 이건 저희룰로 추가해요 그러면

Copy link
Member

@Seongtaek-H Seongtaek-H left a comment

Choose a reason for hiding this comment

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

워터 의견대로 수정하시고 다시 올려주시면 될 것 같습니닷

-불필요한 div수정
-함수명을 더 명확하게
@endmoseung
Copy link
Contributor Author

워터 의견대로 수정하시고 다시 올려주시면 될 것 같습니닷

수정했습니다 반영부탁드려요!

@Seongtaek-H Seongtaek-H self-requested a review December 20, 2022 09:53
navigate(-1)
}

return <Back onClick={handleLocateBack}></Back>
Copy link
Member

Choose a reason for hiding this comment

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

워터 리뷰는 밖에 frag components 를 없애라는게 아니라 <Back onClick={handleLocateBack} />
이런식으로 닫혀있는 단일 노드로 만들자는 거 아닌가요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

어 다시 읽어보니까 그게 맞는거 같아요 이거 린트로 설정 가능하지 않나요 ?

Copy link
Member

Choose a reason for hiding this comment

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

저것도 린트로 설정이 가능한가요? 할수있으면 하시죵

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

-children이 없는 tag는 바로 닫기도록
Copy link
Member

@Seongtaek-H Seongtaek-H left a comment

Choose a reason for hiding this comment

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

확인했습니닷

@endmoseung endmoseung merged commit 86df16a into develop Dec 20, 2022
@endmoseung endmoseung deleted the FE-19 branch December 20, 2022 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants