From 60d9feecda1449222ac914f92e247b6e2cf54957 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 21 Jun 2018 20:21:34 +0700 Subject: [PATCH] Disable the swap list "Cancel" button It's not working as expected and is causing more confusion than it's helpful. --- app/renderer/components/SwapList.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/app/renderer/components/SwapList.js b/app/renderer/components/SwapList.js index c9c62a9f96..1feba9ab3d 100644 --- a/app/renderer/components/SwapList.js +++ b/app/renderer/components/SwapList.js @@ -6,6 +6,7 @@ import Empty from 'components/Empty'; import SwapDetails from 'components/SwapDetails'; import './SwapList.scss'; +// eslint-disable-next-line no-unused-vars class CancelButton extends React.Component { state = { isCancelling: false, @@ -38,7 +39,7 @@ class CancelButton extends React.Component { } } -const SwapItem = ({swap, showCancel}) => ( +const SwapItem = ({swap}) => (
{formatDate(swap.timeStarted, 'HH:mm DD/MM/YY')}
{swap.baseCurrency}/{swap.quoteCurrency}
@@ -48,11 +49,13 @@ const SwapItem = ({swap, showCancel}) => (
{swap.statusFormatted}
- {showCancel && + {/* Disabled until marketmaker v2 + See: https://github.com/hyperdexapp/hyperdex/issues/262#issuecomment-396587751showCancel + &&
- } + */}
@@ -69,7 +72,11 @@ const SwapList = ({swaps, showCancel}) => {
{ swaps.map(swap => ( - + )) }