From 96281d8618619086ad48e50c8f3ce21bfe8b688b Mon Sep 17 00:00:00 2001 From: Emilio Silva Schlenker Date: Sat, 16 Mar 2019 11:51:07 -0300 Subject: [PATCH] Delete payment status (requested by @dimarconicola) (#78) The payment status section of the tip payment watcher was removed. --- src/pages/Dashboard/components/Tip.js | 36 +++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/pages/Dashboard/components/Tip.js b/src/pages/Dashboard/components/Tip.js index 2d74e90..7c09430 100644 --- a/src/pages/Dashboard/components/Tip.js +++ b/src/pages/Dashboard/components/Tip.js @@ -13,13 +13,13 @@ const Container = styled.div` flex-direction: column; `; -const FiatContainer = styled.div` - padding: 10px 10px 10px 10px; - border-bottom: ${props => `1px solid ${props.theme.borderColor}`}; - text-align: center; -`; +// const FiatContainer = styled.div` +// padding: 10px 10px 10px 10px; +// border-bottom: ${props => `1px solid ${props.theme.borderColor}`}; +// text-align: center; +// `; -const Title = styled.span``; +// const Title = styled.span``; const PaymentInfo = styled.div` padding: 12px 12px; @@ -72,15 +72,15 @@ class Tip extends Component { } render() { - const { txState } = this.state; - let title = ''; - if (txState === WatcherTx.STATES.PENDING) { - title = `1 / 3 Awaiting Payment`; - } else if (txState === WatcherTx.STATES.DETECTED) { - title = `2 / 3 Pending Payment`; - } else if (txState === WatcherTx.STATES.CONFIRMED) { - title = `3 / 3 Payment Successful`; - } + // const { txState } = this.state; + // let title = ''; + // if (txState === WatcherTx.STATES.PENDING) { + // title = `1 / 3 Awaiting Payment`; + // } else if (txState === WatcherTx.STATES.DETECTED) { + // title = `2 / 3 Pending Payment`; + // } else if (txState === WatcherTx.STATES.CONFIRMED) { + // title = `3 / 3 Payment Successful`; + // } return this.props.active && ( @@ -88,9 +88,9 @@ class Tip extends Component { cryptoValue={{dai: ''}} hasSelection={true} /> - - {title} - + {/* */} + {/* {title} */} + {/* */} {({ data }) => (