Use BusyMessage for price lookup #151
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {
|
import {
|
||||||
|
BusyMessage,
|
||||||
CreditAmount,
|
CreditAmount,
|
||||||
} from 'component/common'
|
} from 'component/common'
|
||||||
|
|
||||||
|
@ -34,7 +35,7 @@ class FilePrice extends React.Component{
|
||||||
const isEstimate = costInfo ? !costInfo.includesData : null
|
const isEstimate = costInfo ? !costInfo.includesData : null
|
||||||
|
|
||||||
if (!costInfo) {
|
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} />
|
return <CreditAmount label={false} amount={costInfo.cost} isEstimate={isEstimate} showFree={true} />
|
||||||
|
|
Loading…
Reference in a new issue