Kaynağa Gözat

remove share

tuyetnhi1607 1 yıl önce
ebeveyn
işleme
242698f0d3

+ 10 - 10
src/components/common/NFTCard.tsx

@@ -116,16 +116,16 @@ const NFTCard: React.FC<IOwnProps> = ({
       onClick: () => { },
       isDisabled: true
     },
-    {
-      title: '공유하기',
-      onClick: () => {
-        const url = status === ESaleStatus.ON_GOING ? `${host}/sale/${saleId}` : `${host}/token/${tokenId}`;
-        navigator.clipboard.writeText(url).then(() => {
-          alert('복사되었습니다.');
-        });
-      },
-      isDisabled: false
-    },
+    // {
+    //   title: '공유하기',
+    //   onClick: () => {
+    //     const url = status === ESaleStatus.ON_GOING ? `${host}/sale/${saleId}` : `${host}/token/${tokenId}`;
+    //     navigator.clipboard.writeText(url).then(() => {
+    //       alert('복사되었습니다.');
+    //     });
+    //   },
+    //   isDisabled: false
+    // },
   ];
   const isMulti = totalCount > 1;
   const isEnd = status !== ESaleStatus.ON_GOING;

+ 18 - 18
src/components/common/sale/SaleButtonContainer.tsx

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