chore: cleanup

This commit is contained in:
bartosz-lipinski 2021-04-25 21:58:41 -05:00
parent d8d0add561
commit 03296813a4
1 changed files with 2 additions and 19 deletions

View File

@ -1,5 +1,4 @@
import React, { useEffect, useState } from 'react'
// import { useHistory } from 'react-router-dom'
import React, { useEffect, useState } from 'react';
import {
Row,
Col,
@ -8,26 +7,10 @@ import {
InputNumber
} from 'antd'
import { Auction, Presale } from '../../types'
import { Auction } from '../../types'
import './index.less'
import { getCountdown } from '../../utils/utils'
import { solanaToUSD } from '../../utils/assets'
const Price = ({amt}: {amt: number}) => {
const [USDamt, setUSDamt] = useState<number>(0)
useEffect(() => {
solanaToUSD(amt).then(setUSDamt)
}, [amt])
return (
<div>
<span className="cd-number">{amt}</span>&nbsp;&nbsp;
<span className="cd-label">${USDamt.toFixed(2)}</span>
</div>
)
}
export const AuctionCard = ({ auction }: { auction: Auction }) => {
const [hours, setHours] = useState<number>(23)