Use BusyMessage for price lookup

This commit is contained in:
6ea86b96 2017-05-28 17:54:00 +04:00
parent 64c5f10bc1
commit 809a003a11

View file

@ -1,5 +1,6 @@
import React from 'react'
import {
BusyMessage,
CreditAmount,
} from 'component/common'
@ -34,7 +35,7 @@ class FilePrice extends React.Component{
const isEstimate = costInfo ? !costInfo.includesData : null
if (!costInfo) {
return <span className={`credit-amount credit-amount--${look}`}>???</span>;
return <BusyMessage className={`credit-amount credit-amount--${look}`} message="Looking up price" />
}
return <CreditAmount label={false} amount={costInfo.cost} isEstimate={isEstimate} showFree={true} />