diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-20 07:37:54 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-20 07:41:39 +0800 |
commit | bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab (patch) | |
tree | 0c5a0b64a1a20576c5d1fc2ab43cc42fc349112f /packages/instant/src/components/retry_button.tsx | |
parent | 51779fec38a32c0bbbc0209559f84aeda8a45d1a (diff) | |
download | dexon-0x-contracts-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar dexon-0x-contracts-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar.gz dexon-0x-contracts-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar.bz2 dexon-0x-contracts-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar.lz dexon-0x-contracts-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar.xz dexon-0x-contracts-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.tar.zst dexon-0x-contracts-bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab.zip |
feat(instant): Add failure state and icon
Diffstat (limited to 'packages/instant/src/components/retry_button.tsx')
-rw-r--r-- | packages/instant/src/components/retry_button.tsx | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/packages/instant/src/components/retry_button.tsx b/packages/instant/src/components/retry_button.tsx index 5e36506d0..28547ce54 100644 --- a/packages/instant/src/components/retry_button.tsx +++ b/packages/instant/src/components/retry_button.tsx @@ -1,24 +1,11 @@ import * as React from 'react'; -import { ColorOption } from '../style/theme'; - -import { Button, Text } from './ui'; +import { SecondaryButton } from './secondary_button'; export interface RetryButtonProps { onClick: () => void; } export const RetryButton: React.StatelessComponent<RetryButtonProps> = props => { - return ( - <Button - backgroundColor={ColorOption.white} - borderColor={ColorOption.lightGrey} - width="100%" - onClick={props.onClick} - > - <Text fontColor={ColorOption.primaryColor} fontWeight={600} fontSize="16px"> - Try Again - </Text> - </Button> - ); + return <SecondaryButton text="Try Again" onClick={props.onClick} />; }; |