|
@@ -127,9 +127,9 @@ const ButtonContainer: React.FC<IButtonContainer> = ({ saleType, isOwner, isTime
|
|
if (saleType === ESaleType.FIXED) {
|
|
if (saleType === ESaleType.FIXED) {
|
|
return (
|
|
return (
|
|
<div className={cx('btn_area')}>
|
|
<div className={cx('btn_area')}>
|
|
- <div className={cx('btn_wrap')}>
|
|
|
|
|
|
+ {/* <div className={cx('btn_wrap')}>
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
- </div>
|
|
|
|
|
|
+ </div> */}
|
|
<div className={cx('btn_wrap')}>
|
|
<div className={cx('btn_wrap')}>
|
|
<Button text='판매 취소' useColor={true} onClick={closeSell} />
|
|
<Button text='판매 취소' useColor={true} onClick={closeSell} />
|
|
</div>
|
|
</div>
|
|
@@ -141,9 +141,9 @@ const ButtonContainer: React.FC<IButtonContainer> = ({ saleType, isOwner, isTime
|
|
if (saleType === ESaleType.AUCTION && highestPrice) {
|
|
if (saleType === ESaleType.AUCTION && highestPrice) {
|
|
return (
|
|
return (
|
|
<div className={cx('btn_area')}>
|
|
<div className={cx('btn_area')}>
|
|
- <div className={cx('btn_wrap')}>
|
|
|
|
|
|
+ {/* <div className={cx('btn_wrap')}>
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
- </div>
|
|
|
|
|
|
+ </div> */}
|
|
{!!highestPrice && (
|
|
{!!highestPrice && (
|
|
<div className={cx('btn_wrap')}>
|
|
<div className={cx('btn_wrap')}>
|
|
<Button text='최고가에 판매하기' useColor={true} onClick={saleHighestPrice} />
|
|
<Button text='최고가에 판매하기' useColor={true} onClick={saleHighestPrice} />
|
|
@@ -157,9 +157,9 @@ const ButtonContainer: React.FC<IButtonContainer> = ({ saleType, isOwner, isTime
|
|
if (saleType === ESaleType.TIME && isTimeout && highestPrice) {
|
|
if (saleType === ESaleType.TIME && isTimeout && highestPrice) {
|
|
return (
|
|
return (
|
|
<div className={cx('btn_area')}>
|
|
<div className={cx('btn_area')}>
|
|
- <div className={cx('btn_wrap')}>
|
|
|
|
|
|
+ {/* <div className={cx('btn_wrap')}>
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
- </div>
|
|
|
|
|
|
+ </div> */}
|
|
<div className={cx('btn_wrap')}>
|
|
<div className={cx('btn_wrap')}>
|
|
<Button text='최고가에 판매하기' onClick={saleHighestPrice} />
|
|
<Button text='최고가에 판매하기' onClick={saleHighestPrice} />
|
|
</div>
|
|
</div>
|
|
@@ -171,9 +171,9 @@ const ButtonContainer: React.FC<IButtonContainer> = ({ saleType, isOwner, isTime
|
|
if (saleType === ESaleType.TIME && !highestPrice) {
|
|
if (saleType === ESaleType.TIME && !highestPrice) {
|
|
return (
|
|
return (
|
|
<div className={cx('btn_area')}>
|
|
<div className={cx('btn_area')}>
|
|
- <div className={cx('btn_wrap')}>
|
|
|
|
|
|
+ {/* <div className={cx('btn_wrap')}>
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
- </div>
|
|
|
|
|
|
+ </div> */}
|
|
<div className={cx('btn_wrap')}>
|
|
<div className={cx('btn_wrap')}>
|
|
<Button text='판매 취소' useColor={true} onClick={closeSell} />
|
|
<Button text='판매 취소' useColor={true} onClick={closeSell} />
|
|
</div>
|
|
</div>
|
|
@@ -183,18 +183,18 @@ const ButtonContainer: React.FC<IButtonContainer> = ({ saleType, isOwner, isTime
|
|
|
|
|
|
return (
|
|
return (
|
|
<div className={cx('btn_area')}>
|
|
<div className={cx('btn_area')}>
|
|
- <div className={cx('btn_wrap')}>
|
|
|
|
|
|
+ {/* <div className={cx('btn_wrap')}>
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
- </div>
|
|
|
|
|
|
+ </div> */}
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
} else {
|
|
} else {
|
|
// 판매 종료
|
|
// 판매 종료
|
|
return (
|
|
return (
|
|
<div className={cx('btn_area')}>
|
|
<div className={cx('btn_area')}>
|
|
- <div className={cx('btn_wrap')}>
|
|
|
|
|
|
+ {/* <div className={cx('btn_wrap')}>
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
- </div>
|
|
|
|
|
|
+ </div> */}
|
|
<div className={cx('btn_wrap')}>
|
|
<div className={cx('btn_wrap')}>
|
|
<Button text='판매 재등록' useColor={true} onClick={handleResale} />
|
|
<Button text='판매 재등록' useColor={true} onClick={handleResale} />
|
|
</div>
|
|
</div>
|
|
@@ -207,9 +207,9 @@ const ButtonContainer: React.FC<IButtonContainer> = ({ saleType, isOwner, isTime
|
|
if (!isOnGoing) {
|
|
if (!isOnGoing) {
|
|
return (
|
|
return (
|
|
<div className={cx('btn_area')}>
|
|
<div className={cx('btn_area')}>
|
|
- <div className={cx('btn_wrap')}>
|
|
|
|
|
|
+ {/* <div className={cx('btn_wrap')}>
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
- </div>
|
|
|
|
|
|
+ </div> */}
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
}
|
|
}
|
|
@@ -231,9 +231,9 @@ const ButtonContainer: React.FC<IButtonContainer> = ({ saleType, isOwner, isTime
|
|
if (saleType === ESaleType.AUCTION && !myBiddingPrice) {
|
|
if (saleType === ESaleType.AUCTION && !myBiddingPrice) {
|
|
return (
|
|
return (
|
|
<div className={cx('btn_area')}>
|
|
<div className={cx('btn_area')}>
|
|
- <div className={cx('btn_wrap')}>
|
|
|
|
|
|
+ {/* <div className={cx('btn_wrap')}>
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
- </div>
|
|
|
|
|
|
+ </div> */}
|
|
<div className={cx('btn_wrap')}>
|
|
<div className={cx('btn_wrap')}>
|
|
<Button text='입찰하기' useColor={true} onClick={handleBid} />
|
|
<Button text='입찰하기' useColor={true} onClick={handleBid} />
|
|
</div>
|
|
</div>
|
|
@@ -282,9 +282,9 @@ const ButtonContainer: React.FC<IButtonContainer> = ({ saleType, isOwner, isTime
|
|
|
|
|
|
return (
|
|
return (
|
|
<div className={cx('btn_area')}>
|
|
<div className={cx('btn_area')}>
|
|
- <div className={cx('btn_wrap')}>
|
|
|
|
|
|
+ {/* <div className={cx('btn_wrap')}>
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
<Button text='공유하기' onClick={handleShare} />
|
|
- </div>
|
|
|
|
|
|
+ </div> */}
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
}
|
|
}
|