Skip to content

Commit

Permalink
feat: 휴지통 아이콘 누르면 장바구니에서 해당 상품 삭제되는 기능 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
feb-dain committed May 17, 2023
1 parent 485386c commit 59f5ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/cart/SelectedProductItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const SelectedProductItem = ({ id, imageUrl, name, price, quantity }: Props) =>
<label htmlFor={`${id}-checkbox`}>{name}</label>
<S.Wrapper>
<QuantityInput id={name} value={String(quantity)} onChange={handleNumberInputChange} />
<Button css={trashCanButtonStyle}>
<Button css={trashCanButtonStyle} onClick={removeItemFromCart}>
<TrashCanIcon patternId={id} imageSize={{ width: '40', height: '40' }} />
</Button>
<Price price={price * quantity} />
Expand Down

0 comments on commit 59f5ad2

Please sign in to comment.