Skip to content

Commit

Permalink
style(buysell order history do not show seconds)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtedemaupeou committed Jun 1, 2018
1 parent 7db5da5 commit 80be591
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import React from 'react'
import PropTypes from 'prop-types'
import { FormattedMessage } from 'react-intl'
import { Exchange } from 'blockchain-wallet-v4/src'
import { type } from 'ramda'
import { prop, type } from 'ramda'
import moment from 'moment'

import { TableCell, TableRow, Text, Link, Icon, HeartbeatLoader } from 'blockchain-info-components'
import OrderStatus from '../OrderStatus'

const tradeDateHelper = (trade) => type(trade.createdAt) === 'Number' ? new Date(trade.createdAt).toLocaleString() : trade.createdAt.toLocaleString()
const tradeDateHelper = (trade) => type(trade.createdAt) === 'Number' ? moment(prop('createdAt', trade)).local().format('MMMM D YYYY @ h:mm A') : trade.createdAt.toLocaleString()

const TradeItem = props => {
const { conversion, handleClick, handleFinish, handleTradeCancel, trade, status, cancelTradeId } = props
Expand Down

0 comments on commit 80be591

Please sign in to comment.