diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-26 06:42:35 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-26 06:42:35 +0800 |
commit | ced4c893ba412ca401430a66694e194806d46e6b (patch) | |
tree | f594cd94048c1bc6ad14429b50e7ff52e840c37c /packages/instant/src/components/retry_button.tsx | |
parent | e3510f3bcf4eea76d93888faedd822117bab7bdb (diff) | |
download | dexon-sol-tools-ced4c893ba412ca401430a66694e194806d46e6b.tar dexon-sol-tools-ced4c893ba412ca401430a66694e194806d46e6b.tar.gz dexon-sol-tools-ced4c893ba412ca401430a66694e194806d46e6b.tar.bz2 dexon-sol-tools-ced4c893ba412ca401430a66694e194806d46e6b.tar.lz dexon-sol-tools-ced4c893ba412ca401430a66694e194806d46e6b.tar.xz dexon-sol-tools-ced4c893ba412ca401430a66694e194806d46e6b.tar.zst dexon-sol-tools-ced4c893ba412ca401430a66694e194806d46e6b.zip |
Show View Transaction button on failure, and allow setting of width for Try Again button and View Txn button
Diffstat (limited to 'packages/instant/src/components/retry_button.tsx')
-rw-r--r-- | packages/instant/src/components/retry_button.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/components/retry_button.tsx b/packages/instant/src/components/retry_button.tsx index 0d6188e6a..36ae55e72 100644 --- a/packages/instant/src/components/retry_button.tsx +++ b/packages/instant/src/components/retry_button.tsx @@ -1,11 +1,11 @@ import * as React from 'react'; -import { SecondaryButton } from './secondary_button'; +import { SecondaryButton, SecondaryButtonProps } from './secondary_button'; -export interface RetryButtonProps { +export interface RetryButtonProps extends SecondaryButtonProps { onClick: () => void; } export const RetryButton: React.StatelessComponent<RetryButtonProps> = props => { - return <SecondaryButton onClick={props.onClick}>Try Again</SecondaryButton>; + return <SecondaryButton {...props}>Try Again</SecondaryButton>; }; |