-
Notifications
You must be signed in to change notification settings - Fork 0
feat: 강의시간표 페이지 구현 #18
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
Conversation
- Header.tsx -> Header으로 변경했습니다.
- 상단에 탭 부분을 구현했습니다. - 아직 사이드 바와 연동되어 있지 않습니다. 탭 닫기 와 전체 닫기 버튼은 작동하지만 다시 탭을 열 수는 없습니다. - 테마에 선언한 텍스트 스타일의 이름을 변경했습니다. (tap->tab)
This reverts commit c9bd819.
- 드롭다운, 인풋, 조회 버튼을 컴포넌트화 했습니다. - Warning: Received "true" for a non-boolean attribute 오류를 해결했습니다. - 스타일 요소들을 수정했습니다.
- API 연결이 되어있지 않아 임의로 데이터를 만들어 구현했습니다. - 열의 항목들이 페이지마다 달라서 Table을 사용할 때 열 데이터를 만들어 전달해야 합니다.
stableh
left a comment
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.
지금까지의 코드로 develop merge 한 다음 로컬에서 api 테스트 해보겠습니다! 고생하셨어요!!
| const handleMouseDown = (index: number) => (event: React.MouseEvent) => { | ||
| const startX = event.clientX; | ||
| const startWidth = columnWidths[index]; | ||
|
|
||
| const handleMouseMove = (moveEvent: MouseEvent) => { | ||
| const newWidth = startWidth + (moveEvent.clientX - startX); | ||
| setColumnWidths(prevWidths => | ||
| prevWidths.map((width, i) => (i === index ? newWidth : width)), | ||
| ); | ||
| }; | ||
|
|
||
| const handleMouseUp = () => { | ||
| document.removeEventListener('mousemove', handleMouseMove); | ||
| document.removeEventListener('mouseup', handleMouseUp); | ||
| }; | ||
|
|
||
| document.addEventListener('mousemove', handleMouseMove); | ||
| document.addEventListener('mouseup', handleMouseUp); | ||
| }; |
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.
이 코드만 봐도 테이블 구현하는데 엄청 힘드셨을 것 같아요.. 고생하셨습니다!!
| const InputWrap = styled.input<{sizes: string}>` | ||
| ${props => props.theme.texts.content}; | ||
|
|
||
| ${props => | ||
| props.sizes === 's' && | ||
| css` | ||
| width: 14rem; | ||
| `}; | ||
| ${props => | ||
| props.sizes === 'm' && | ||
| css` | ||
| width: 19.5rem; | ||
| `}; | ||
| ${props => | ||
| props.sizes === 'xl' && | ||
| css` | ||
| width: 48.5rem; | ||
| `}; | ||
|
|
||
| height: 2.4rem; | ||
| border: 1px solid ${props => props.theme.colors.neutral5}; | ||
| padding-left: 0.8rem; | ||
| `; |
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.
styled component 이런식으로 활용하니 장점이 보이는 것 같습니다! 많이 배웁니다.
Issue
Details
탭 닫기 와 전체 닫기 버튼은 작동하지만 다시 탭을 열 수는 없습니다.