feat: remove all instances of moment usage

This commit is contained in:
Sérgio Salgado 2021-11-23 16:09:15 +00:00
parent 7d6fb17158
commit 973040f409
29 changed files with 252 additions and 193 deletions

View file

@ -2,9 +2,9 @@ import { useQuery } from '@apollo/react-hooks'
import { makeStyles } from '@material-ui/core/styles'
import BigNumber from 'bignumber.js'
import classnames from 'classnames'
import { format } from 'date-fns'
import gql from 'graphql-tag'
import { utils as coinUtils } from 'lamassu-coins'
import moment from 'moment'
import QRCode from 'qrcode.react'
import * as R from 'ramda'
import React, { useState } from 'react'
@ -275,12 +275,8 @@ const Funding = () => {
<Td width={sizes.big}>
{it.fiatValue} {selected.fiatCode}
</Td>
<Td width={sizes.date}>
{moment(it.date).format('YYYY-MM-DD')}
</Td>
<Td width={sizes.time}>
{moment(it.date).format('hh:mm:ss')}
</Td>
<Td width={sizes.date}>{format(it.date, 'YYYY-MM-DD')}</Td>
<Td width={sizes.time}>{format(it.date, 'hh:mm:ss')}</Td>
<Td width={sizes.big}>add</Td>
</Tr>
))}