mirror of https://github.com/certusone/oyster.git
chore: cleanup
This commit is contained in:
parent
d8d0add561
commit
03296813a4
|
@ -1,5 +1,4 @@
|
||||||
import React, { useEffect, useState } from 'react'
|
import React, { useEffect, useState } from 'react';
|
||||||
// import { useHistory } from 'react-router-dom'
|
|
||||||
import {
|
import {
|
||||||
Row,
|
Row,
|
||||||
Col,
|
Col,
|
||||||
|
@ -8,26 +7,10 @@ import {
|
||||||
InputNumber
|
InputNumber
|
||||||
} from 'antd'
|
} from 'antd'
|
||||||
|
|
||||||
import { Auction, Presale } from '../../types'
|
import { Auction } from '../../types'
|
||||||
|
|
||||||
import './index.less'
|
import './index.less'
|
||||||
import { getCountdown } from '../../utils/utils'
|
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>
|
|
||||||
<span className="cd-label">${USDamt.toFixed(2)}</span>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export const AuctionCard = ({ auction }: { auction: Auction }) => {
|
export const AuctionCard = ({ auction }: { auction: Auction }) => {
|
||||||
const [hours, setHours] = useState<number>(23)
|
const [hours, setHours] = useState<number>(23)
|
||||||
|
|
Loading…
Reference in New Issue