diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-31 07:43:58 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-31 07:43:58 +0800 |
commit | 9787d1085da225ac3180983065f63d26a6bab3e6 (patch) | |
tree | 55892cba39d48ff1f9605dec27ce325e8623ddb1 /packages/instant/src/components | |
parent | 1c0569cfc61d7b166d79d2d73e9bbc6d11a5b4e8 (diff) | |
download | dexon-0x-contracts-9787d1085da225ac3180983065f63d26a6bab3e6.tar dexon-0x-contracts-9787d1085da225ac3180983065f63d26a6bab3e6.tar.gz dexon-0x-contracts-9787d1085da225ac3180983065f63d26a6bab3e6.tar.bz2 dexon-0x-contracts-9787d1085da225ac3180983065f63d26a6bab3e6.tar.lz dexon-0x-contracts-9787d1085da225ac3180983065f63d26a6bab3e6.tar.xz dexon-0x-contracts-9787d1085da225ac3180983065f63d26a6bab3e6.tar.zst dexon-0x-contracts-9787d1085da225ac3180983065f63d26a6bab3e6.zip |
Get rid of old demo
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r-- | packages/instant/src/components/buy_order_state_buttons.tsx | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/packages/instant/src/components/buy_order_state_buttons.tsx b/packages/instant/src/components/buy_order_state_buttons.tsx index 6f197a772..df1664cd9 100644 --- a/packages/instant/src/components/buy_order_state_buttons.tsx +++ b/packages/instant/src/components/buy_order_state_buttons.tsx @@ -25,12 +25,8 @@ export interface BuyOrderStateButtonProps { onBuySuccess: (buyQuote: BuyQuote, txHash: string, startTimeUnix: number, expectedEndTimeUnix: number) => void; onBuyFailure: (buyQuote: BuyQuote, txHash: string, startTimeUnix: number, expectedEndTimeUnix: number) => void; onRetry: () => void; - - // TODO: dont commit! - secondaryProgressDemo: () => void; } -// TODO: rename to buttons export const BuyOrderStateButtons: React.StatelessComponent<BuyOrderStateButtonProps> = props => { if (props.buyOrderProcessingState === OrderProcessState.FAILURE) { return ( @@ -54,15 +50,8 @@ export const BuyOrderStateButtons: React.StatelessComponent<BuyOrderStateButtonP return <PlacingOrderButton />; } - const curTime = new Date().getTime(); - const expectedEndTime = curTime + 5000; return ( <div> - {/* <div style={{ marginBottom: '20px' }}> - <SimulatedProgressBar startTimeUnix={curTime} expectedEndTimeUnix={expectedEndTime} ended={false} /> - </div> */} - - <SecondaryButton onClick={props.secondaryProgressDemo}>New progress bar demo</SecondaryButton> <BuyButton buyQuote={props.buyQuote} assetBuyer={props.assetBuyer} |