From 99e162b0743d9351a5aac313835aca0c488848e4 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 22 May 2019 15:08:34 -0400 Subject: [PATCH] feat: show expiration date when it is available --- src/js/pages/Escrow/components/EscrowDetail.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/pages/Escrow/components/EscrowDetail.jsx b/src/js/pages/Escrow/components/EscrowDetail.jsx index 0ac05250..8bbb66bb 100644 --- a/src/js/pages/Escrow/components/EscrowDetail.jsx +++ b/src/js/pages/Escrow/components/EscrowDetail.jsx @@ -3,6 +3,7 @@ import {Row, Col} from 'reactstrap'; import {faQuestionCircle} from "@fortawesome/free-solid-svg-icons"; import PropTypes from 'prop-types'; import RoundedIcon from "../../../ui/RoundedIcon"; +import moment from "moment"; const EscrowDetail = ({escrow}) => @@ -12,6 +13,7 @@ const EscrowDetail = ({escrow}) =>
Trade details

{(escrow.tokenAmount * escrow.assetPrice / 100).toFixed(2)} {escrow.offer.currency} for {escrow.tokenAmount} {escrow.token.symbol}

{escrow.token.symbol} Price = {escrow.assetPrice / 100} {escrow.offer.currency}

+ {escrow.expirationTime && escrow.expirationTime !== '0' &&

Expiration time: {moment(escrow.expirationTime * 1000).toString()}

}
;