Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useIsTablet에 들어가는 tabPoint는 tabel 기준 minWidth가 될 것이고
useIsMobie에 들어가는 mobPoint는 mobile 기준 maxWidth가 되니까
결국 tabPoint와 mobPoint가 같은 거 아닌가요??
모바일 기준 최대 너비가 태블릿 기준 최소 너비니까요!
useIsTablet에서 minWidth의 default value가 431이고, useIsMobile에서 maxWidth의 default value가 430.999 이지만
브라우저에서 px 소수점 인식 제대로 못하기 때문에 하나의 변수로 통일 시켜도 될 거 같다는 생각입니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아 제가 prop을 잘못 작성했는데,
제가 의도했던 코드는 이거였어요!!
저희가 breakPoint가 두개니까요.
+) 그리고 breakPoint 두개를 일반 arguments로 주면 사용하는 쪽에서 어떤 순서로 작성해야 하는지 혼동할 수 있을 것 같아서
값 의미를 정확히 하고자 객체로 묶어서 주었어요
혹시 어떠신가요? ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
너무 좋습니다~~~ :)
고생하셨어여 😄