aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/placing_order_button.tsx
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-23 05:27:38 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-23 05:27:38 +0800
commit4bf1ca0d1777d56126b3c5113a129738ba3c8d0d (patch)
tree80f1636f05fd55308dff48c14033f0f876299c0e /packages/instant/src/components/placing_order_button.tsx
parentd52a04e725afce3c2d563bcc52bd3273002af318 (diff)
downloaddexon-sol-tools-4bf1ca0d1777d56126b3c5113a129738ba3c8d0d.tar.gz
dexon-sol-tools-4bf1ca0d1777d56126b3c5113a129738ba3c8d0d.tar.zst
dexon-sol-tools-4bf1ca0d1777d56126b3c5113a129738ba3c8d0d.zip
Making SecondaryButton accept children instead of text prop
Diffstat (limited to 'packages/instant/src/components/placing_order_button.tsx')
-rw-r--r--packages/instant/src/components/placing_order_button.tsx19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/instant/src/components/placing_order_button.tsx b/packages/instant/src/components/placing_order_button.tsx
new file mode 100644
index 000000000..8dc05c445
--- /dev/null
+++ b/packages/instant/src/components/placing_order_button.tsx
@@ -0,0 +1,19 @@
+import * as React from 'react';
+
+import { ColorOption } from '../style/theme';
+
+import { Button } from './ui/button';
+import { Container } from './ui/container';
+import { Spinner } from './ui/spinner';
+import { Text } from './ui/text';
+
+export const PlacingOrderButton: React.StatelessComponent<{}> = props => (
+ <Button isDisabled={true} width="100%">
+ <Container display="inline-block" position="relative" top="2px" marginRight="5px">
+ <Spinner widthPx={20} heightPx={20} />
+ </Container>
+ <Text fontColor={ColorOption.white} fontWeight={600} fontSize="20px">
+ Placing Order&hellip;
+ </Text>
+ </Button>
+);