aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/secondary_button.tsx
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 06:34:51 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 06:34:51 +0800
commit6ad8ac6a4836bf926666f2d05e91d2d4b31c6b19 (patch)
treed159e73abfb56c9b7d1cccd5fea2fdf84411ceb5 /packages/instant/src/components/secondary_button.tsx
parent86febc3cce1135d2345f0048c205c3c524a66733 (diff)
parente73fceaa20738175e660caf4dee442d4c598c1b5 (diff)
downloaddexon-0x-contracts-6ad8ac6a4836bf926666f2d05e91d2d4b31c6b19.tar.gz
dexon-0x-contracts-6ad8ac6a4836bf926666f2d05e91d2d4b31c6b19.tar.zst
dexon-0x-contracts-6ad8ac6a4836bf926666f2d05e91d2d4b31c6b19.zip
Merge branch 'development' into feature/not-enough-eth
Diffstat (limited to 'packages/instant/src/components/secondary_button.tsx')
-rw-r--r--packages/instant/src/components/secondary_button.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/instant/src/components/secondary_button.tsx b/packages/instant/src/components/secondary_button.tsx
index 3c139a233..583058b5b 100644
--- a/packages/instant/src/components/secondary_button.tsx
+++ b/packages/instant/src/components/secondary_button.tsx
@@ -14,7 +14,7 @@ export const SecondaryButton: React.StatelessComponent<SecondaryButtonProps> = p
<Button
backgroundColor={ColorOption.white}
borderColor={ColorOption.lightGrey}
- width="100%"
+ width={props.width}
onClick={props.onClick}
{...buttonProps}
>
@@ -24,3 +24,6 @@ export const SecondaryButton: React.StatelessComponent<SecondaryButtonProps> = p
</Button>
);
};
+SecondaryButton.defaultProps = {
+ width: '100%',
+};