aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-20 08:28:40 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-20 08:28:40 +0800
commit578a46c57f04bbae223fe0b6b79f6aaa28576a95 (patch)
tree84be6094e28fba7f534472e0db726dd322742fa7 /packages/instant/src/components
parent953f8c119b561eeb3463194494e6725869a68bec (diff)
downloaddexon-sol-tools-578a46c57f04bbae223fe0b6b79f6aaa28576a95.tar
dexon-sol-tools-578a46c57f04bbae223fe0b6b79f6aaa28576a95.tar.gz
dexon-sol-tools-578a46c57f04bbae223fe0b6b79f6aaa28576a95.tar.bz2
dexon-sol-tools-578a46c57f04bbae223fe0b6b79f6aaa28576a95.tar.lz
dexon-sol-tools-578a46c57f04bbae223fe0b6b79f6aaa28576a95.tar.xz
dexon-sol-tools-578a46c57f04bbae223fe0b6b79f6aaa28576a95.tar.zst
dexon-sol-tools-578a46c57f04bbae223fe0b6b79f6aaa28576a95.zip
feat(instant): Add powered by 0x image
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r--packages/instant/src/components/zero_ex_instant_container.tsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_container.tsx b/packages/instant/src/components/zero_ex_instant_container.tsx
index 698bfef17..9d5fe7171 100644
--- a/packages/instant/src/components/zero_ex_instant_container.tsx
+++ b/packages/instant/src/components/zero_ex_instant_container.tsx
@@ -1,5 +1,6 @@
import * as React from 'react';
+import { ZERO_EX_SITE_URL } from '../constants';
import { AvailableERC20TokenSelector } from '../containers/available_erc20_token_selector';
import { ConnectedBuyOrderProgressOrPaymentMethod } from '../containers/connected_buy_order_progress_or_payment_method';
import { CurrentStandardSlidingPanel } from '../containers/current_standard_sliding_panel';
@@ -15,6 +16,7 @@ import { CSSReset } from './css_reset';
import { SlidingPanel } from './sliding_panel';
import { Container } from './ui/container';
import { Flex } from './ui/flex';
+import { Text } from './ui/text';
export interface ZeroExInstantContainerProps {
orderProcessState: OrderProcessState;
@@ -28,6 +30,8 @@ export class ZeroExInstantContainer extends React.Component<{}, ZeroExInstantCon
tokenSelectionPanelAnimationState: 'none' as SlideAnimationState,
};
public render(): React.ReactNode {
+ const PoweredByLogo = require('../assets/powered_by_0x.svg');
+
return (
<React.Fragment>
<CSSReset />
@@ -64,6 +68,17 @@ export class ZeroExInstantContainer extends React.Component<{}, ZeroExInstantCon
</SlidingPanel>
<CurrentStandardSlidingPanel />
</Container>
+ <Container
+ display={{ sm: 'none', default: 'block' }}
+ marginTop="10px"
+ marginLeft="auto"
+ marginRight="auto"
+ width="140px"
+ >
+ <Text href={ZERO_EX_SITE_URL}>
+ <PoweredByLogo />
+ </Text>
+ </Container>
</Container>
</React.Fragment>
);