Skip to content

Conversation

mynameishwan
Copy link
Collaborator

요구사항

기본

  • [x]
  • []
  • []

심화

  • [x]
  • []

주요 변경사항

스크린샷

image

멘토에게

  • 상품등록 페이지(AddItem.js)에서 값을 입력 후 등록해서 ItemsPage의 상품 목록에 추가하는 POST리퀘스트 작업은 하지 못했습니다.

@mynameishwan mynameishwan added the 매운맛🔥 뒤는 없습니다. 그냥 필터 없이 말해주세요. 책임은 제가 집니다. label Jan 20, 2025
Copy link
Contributor

@withyj-codeit withyj-codeit left a 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;
Copy link
Contributor

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);
Copy link
Contributor

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;
Copy link
Contributor

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";
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

Dropdown은 만들고 사용하는 곳은 없나요?

상품 등록하기
</button>
</Link>
{/* 드롭다운 */}
Copy link
Contributor

Choose a reason for hiding this comment

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

여기 있는 부분을 Dropdown 컴포넌트로 대체하나요?

@withyj-codeit withyj-codeit merged commit 94c6681 into codeit-bootcamp-frontend:React-이승환 Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

매운맛🔥 뒤는 없습니다. 그냥 필터 없이 말해주세요. 책임은 제가 집니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants