Skip to content

Commit

Permalink
chore: 프론트 배포를 위한 최신화 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
cho1ys committed Dec 9, 2024
1 parent 4c5291c commit 1dc3e20
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/components/common/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ const Login = styled.li`
text-decoration: none;
display: block;
text-align: center;
margin-top: 4px;
margin-top: 5px;
font-weight: bold;
}
Expand Down Expand Up @@ -308,11 +308,11 @@ const LogOut = styled.li`
padding: 0px 10px;
a {
font-size: 15px;
color: white;
text-decoration: none;
display: block;
text-align: center;
margin-top: 1px;
font-weight: bold;
}
Expand Down Expand Up @@ -351,8 +351,9 @@ const StyledLink = styled(Link)`

const CartIcon = styled.div`
img {
width: 20px;
height: 23px;
margin-top: -4px;
width: 22px;
height: 22px;
}
@media (min-width: 576px) and (max-width: 767px) {
Expand Down
3 changes: 1 addition & 2 deletions src/components/pages/ProductDetailPage/CommentComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ const CommentComponent: React.FC<CommentProps> = ({
setEditingId(null);
setEditingText('');
setEditingRating(5);
} catch (e) {
} catch {
alert('현재 댓글을 수정할 수 없는 상태입니다.');
console.log(e);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Product } from '../../HomePage/model/productSchema';
export const getProductbyId = async (productId: number): Promise<Product> => {
try {
const URL = `/goodbuyUs/product?postid=${productId}`;
const response = await axiosInstance.post(URL);
const response = await axiosInstance.get(URL);
return response.data;
} catch {
throw new Error('상품 정보를 가져오는 데 실패했습니다.');
Expand Down

0 comments on commit 1dc3e20

Please sign in to comment.