From 2effef3ce27f23210bf1c0576708309d73b92e97 Mon Sep 17 00:00:00 2001 From: jihwooon Date: Wed, 13 Mar 2024 21:40:18 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=20=EC=9E=A5=EB=B0=94=EA=B5=AC=EB=8B=88=20A?= =?UTF-8?q?PI=20=EA=B2=BD=EB=A1=9C=20=EB=B0=8F=20=EC=BB=B4=ED=8F=AC?= =?UTF-8?q?=EB=84=8C=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 장바구니 API 호출 경로를 /cart 에서 /carts 로 변경했습니다. - 이에 따라 클라이언트 코드의 관련 부분을 수정 반영했습니다. - client/src/api/cart.api.ts - client/src/components/book/AddToCart.tsx - client/src/components/common/Header.tsx --- client/src/components/common/EllipisisBox.tsx | 16 ++++++++-------- client/src/components/common/Error.tsx | 2 +- client/src/components/common/Header.tsx | 6 +++--- client/src/context/themeContext.tsx | 10 +++++----- client/src/pages/BookDetail.tsx | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/client/src/components/common/EllipisisBox.tsx b/client/src/components/common/EllipisisBox.tsx index 11e945b..6d1989c 100644 --- a/client/src/components/common/EllipisisBox.tsx +++ b/client/src/components/common/EllipisisBox.tsx @@ -3,16 +3,16 @@ import { FaAngleDown } from "react-icons/fa"; import { styled } from "styled-components"; import Button from "./Button"; -interface Prpos { +interface Props { children: React.ReactNode; - linelimit: number; + lineLimit: number; } -const EllipsisBox = ({ children, linelimit }: Prpos) => { +const EllipsisBox = ({ children, lineLimit }: Props) => { const [expanded, setExpanded] = useState(false); return ( - +

{children}