-
Notifications
You must be signed in to change notification settings - Fork 37
[이승환] Sprint5, 6 #304
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
[이승환] Sprint5, 6 #304
The head ref may contain hidden characters: "React-\uC774\uC2B9\uD658\uD658-sprint5"
Conversation
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.
스프린트 미션 하느라 수고 많으셨어요~👏🏻
|
||
@media (max-width: 1199px) { | ||
.body { | ||
padding: 0 24px 0; |
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.
0 24px
과 결과가 동일해서 확인하면 좋을 것 같아요.
const [isOpen, setIsOpen] = useState(false); | ||
|
||
const handleToggle = () => { | ||
setIsOpen((prev) => !prev); |
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.
prev 활용 좋아요~👍
function PageNation({ currentPage, totalPages, onPageChange }) { | ||
// 5개씩 묶은 페이지 버튼 생성 | ||
const getPageButtons = () => { | ||
const startPage = Math.floor((currentPage - 1) / 5) * 5 + 1; |
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.
5라는 숫자를 상수로 빼주면 더 좋을 것 같아요.
@@ -0,0 +1,84 @@ | |||
import styled from "styled-components"; | |||
import styles from "./ProductList.module.css"; |
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-components, module css 혼용해서 사용하고 있는데, 학습 목적이 아니라면 하나를 정해서 사용하는 걸 권장드려요.
); | ||
} | ||
|
||
export default Dropdown; |
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.
Dropdown은 만들고 사용하는 곳은 없나요?
상품 등록하기 | ||
</button> | ||
</Link> | ||
{/* 드롭다운 */} |
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.
여기 있는 부분을 Dropdown 컴포넌트로 대체하나요?
요구사항
기본
심화
주요 변경사항
스크린샷
멘토에게