diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-19 02:09:23 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-19 02:09:23 +0800 |
commit | 4b348e1e603ec45e1e4bf39533b4b204423cafa0 (patch) | |
tree | c9fa2d22f44f720a918a53e0cefcec4a00a362f6 /packages/instant/src/components | |
parent | 857eb95ac0f8299fe517321cb805a836232222bc (diff) | |
download | dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.gz dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.bz2 dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.lz dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.xz dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.zst dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.zip |
quoteState -> quoteRequestState
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r-- | packages/instant/src/components/instant_heading.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/instant/src/components/instant_heading.tsx b/packages/instant/src/components/instant_heading.tsx index a36d35a93..9dd13299c 100644 --- a/packages/instant/src/components/instant_heading.tsx +++ b/packages/instant/src/components/instant_heading.tsx @@ -13,7 +13,7 @@ export interface InstantHeadingProps { selectedAssetAmount?: BigNumber; totalEthBaseAmount?: BigNumber; ethUsdPrice?: BigNumber; - quoteState: AsyncProcessState; + quoteRequestState: AsyncProcessState; } const Placeholder = () => ( @@ -42,8 +42,8 @@ const displayUsdAmount = ({ return format.ethBaseAmountInUsd(totalEthBaseAmount, ethUsdPrice, 2, <Placeholder />); }; -const loadingOrAmount = (quoteState: AsyncProcessState, amount: React.ReactNode): React.ReactNode => { - if (quoteState === AsyncProcessState.PENDING) { +const loadingOrAmount = (quoteRequestState: AsyncProcessState, amount: React.ReactNode): React.ReactNode => { + if (quoteRequestState === AsyncProcessState.PENDING) { return ( <Text fontWeight="bold" fontColor={ColorOption.white}> …loading @@ -73,11 +73,11 @@ export const InstantHeading: React.StatelessComponent<InstantHeadingProps> = pro <Flex direction="column" justify="space-between"> <Container marginBottom="5px"> <Text fontSize="16px" fontColor={ColorOption.white} fontWeight={500}> - {loadingOrAmount(props.quoteState, displaytotalEthBaseAmount(props))} + {loadingOrAmount(props.quoteRequestState, displaytotalEthBaseAmount(props))} </Text> </Container> <Text fontSize="16px" fontColor={ColorOption.white} opacity={0.7}> - {loadingOrAmount(props.quoteState, displayUsdAmount(props))} + {loadingOrAmount(props.quoteRequestState, displayUsdAmount(props))} </Text> </Flex> </Flex> |