Skip to content

Commit

Permalink
Delete payment status (requested by @dimarconicola) (dexlab-io#78)
Browse files Browse the repository at this point in the history
The payment status section of the tip payment watcher was removed.
  • Loading branch information
Emilio Silva Schlenker committed Mar 16, 2019
1 parent 3ace3f1 commit 96281d8
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/pages/Dashboard/components/Tip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -72,25 +72,25 @@ 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 && (
<Container>
<CryptoAmount
cryptoValue={{dai: ''}}
hasSelection={true}
/>
<FiatContainer>
<Title className="is-family-secondary">{title}</Title>
</FiatContainer>
{/* <FiatContainer> */}
{/* <Title className="is-family-secondary">{title}</Title> */}
{/* </FiatContainer> */}
<QrCode valueCrypto="" noValue={true} />
<Query query={store.queries.pos} fetchPolicy="cache">
{({ data }) => (
Expand Down

0 comments on commit 96281d8

Please sign in to comment.