Skip to content

Commit

Permalink
Merge pull request #154 from hckang17/dev
Browse files Browse the repository at this point in the history
FEAT:결과페이지에서 상품구매 링크 클릭시 새 탭이 열리도록 수정
  • Loading branch information
kjungw1025 authored Dec 17, 2023
2 parents b4e48ab + b1e8426 commit ff2ee70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/index-sections/ProductCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ const ProductCard = (props) => {
</Col>
<Col md="9" sm="9" xs="9">
<div style={{ fontSize: '18px', paddingTop: '5px' }}>{product.name}</div>
<Button className="btn-sm" color="primary" style={{ fontSize: '20px', borderRadius: '15px' }} href={product.purchaseUrl}>구매링크</Button>
<Button className="btn-sm" color="primary" style={{ fontSize: '20px', borderRadius: '15px' }} onClick={() =>{
window.open(product.purchaseUrl, "_blank", "noopener, noreferrer");
}}>구매링크</Button>
<span style={{ fontSize: '17px', marginLeft: '10px' }}>{product.price.toLocaleString()}</span>
</Col>
</Row>
Expand Down

0 comments on commit ff2ee70

Please sign in to comment.