Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[#11] 제보사이트 - 코드 리뷰 반영 #12

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

Merged
merged 4 commits into from
Jul 1, 2022

Conversation

chaerin-dev
Copy link
Member

작업 내용

  • 숫자가 아닌 실제 옵션 명으로 상태 관리
  • onClick, onInput 내부 동작 함수로 분리
  • 순차적 렌더링을 위한 논리구문 변수로 분리
  • StyledComponent 적용

관련 Issue

Close #11

생각해볼 내용

  • Tabs에서 공통적으로 사용되는 부분을 위해 폴더구조를 이렇게 만들었는데, 뭔가 어색하네요..

이후 작업할 내용

  • 검색 기능 구현

@chaerin-dev chaerin-dev self-assigned this Jul 1, 2022
</DataList>
</StepByStepInputItem>

{isDetailContentUnvisible ? null : (
Copy link
Member

Choose a reason for hiding this comment

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

!isDetailContentUnvisible && (<></>) 와 논리곱 연산자를 써도 좋을 것 같아요! A && B 는 A가 참이여야 B를 수행하고, A가 거짓이면 아무것도 실행하지 않는 것을 뜻합니다.

@@ -0,0 +1,27 @@
// Tabs에서 공통적으로 사용되는 부분을 위해 폴더구조를 이렇게 만들었는데, 뭔가 어색하네요..
Copy link
Member

Choose a reason for hiding this comment

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

이 부분은 저도 공감해요! 아마 아래있는 style 들은 저희가 report 들에 공통적으로 들어갈 component를 만든다면 그 안에 들어갈 내용이 될 거라고 생각합니다 ㅎㅎ

</DataList>
</StepByStepInputItem>

{isDetailContentUnvisible ? null : (
Copy link
Member

Choose a reason for hiding this comment

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

A && ()
!isDetailContentVisible && ()
앞의 조건이 true인 경우에만 뒤에 것을 시행합니다.
병합 연산자??

@@ -7,17 +8,17 @@ import SolutionReport from "./Tabs/SolutionReport";
export default function TabNavigation() {
Copy link
Member

Choose a reason for hiding this comment

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

아래와 같은 폴더구조를 생각해보셔도 좋을 것 같아요!!

image
router.js
image
routes.js
image
App.js
image

@chaerin-dev chaerin-dev merged commit 22f8e5f into develop Jul 1, 2022
@chaerin-dev chaerin-dev deleted the #11-refactor-refactoring-chaerindev branch July 1, 2022 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

제보사이트 - 코드리뷰 반영
2 participants