diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-10 05:29:28 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-10 05:29:28 +0800 |
commit | 3aa831ad7752cf24ae67b1a96a6e839cc40ec820 (patch) | |
tree | 3d46af392f6d73217e603bb9633bc820dde9be8a /packages/instant/src/components/payment_method.tsx | |
parent | 3fd667b3bee4652ec8a1a362790ceaf3fe8cf7d9 (diff) | |
download | dexon-0x-contracts-3aa831ad7752cf24ae67b1a96a6e839cc40ec820.tar.gz dexon-0x-contracts-3aa831ad7752cf24ae67b1a96a6e839cc40ec820.tar.zst dexon-0x-contracts-3aa831ad7752cf24ae67b1a96a6e839cc40ec820.zip |
feat: add account payment method container
Diffstat (limited to 'packages/instant/src/components/payment_method.tsx')
-rw-r--r-- | packages/instant/src/components/payment_method.tsx | 64 |
1 files changed, 34 insertions, 30 deletions
diff --git a/packages/instant/src/components/payment_method.tsx b/packages/instant/src/components/payment_method.tsx index 8c0b47d72..a9bbef518 100644 --- a/packages/instant/src/components/payment_method.tsx +++ b/packages/instant/src/components/payment_method.tsx @@ -3,7 +3,7 @@ import * as _ from 'lodash'; import * as React from 'react'; import { ColorOption } from '../style/theme'; -import { Network } from '../types'; +import { Account, Network } from '../types'; import { PaymentMethodDropdown } from './payment_method_dropdown'; import { Circle } from './ui/circle'; @@ -11,35 +11,39 @@ import { Container } from './ui/container'; import { Flex } from './ui/flex'; import { Text } from './ui/text'; -export interface PaymentMethodProps {} +export interface PaymentMethodProps { + account: Account; +} -export const PaymentMethod: React.StatelessComponent<PaymentMethodProps> = () => ( - <Container padding="20px" width="100%"> - <Container marginBottom="10px"> - <Flex justify="space-between"> - <Text - letterSpacing="1px" - fontColor={ColorOption.primaryColor} - fontWeight={600} - textTransform="uppercase" - fontSize="14px" - > - Payment Method - </Text> - <Flex> - <Circle color={ColorOption.green} diameter={8} /> - <Container marginLeft="3px"> - <Text fontColor={ColorOption.darkGrey} fontSize="12px"> - MetaMask - </Text> - </Container> +export const PaymentMethod: React.StatelessComponent<PaymentMethodProps> = ({ account }) => { + return ( + <Container padding="20px" width="100%"> + <Container marginBottom="10px"> + <Flex justify="space-between"> + <Text + letterSpacing="1px" + fontColor={ColorOption.primaryColor} + fontWeight={600} + textTransform="uppercase" + fontSize="14px" + > + Payment Method + </Text> + <Flex> + <Circle color={ColorOption.green} diameter={8} /> + <Container marginLeft="3px"> + <Text fontColor={ColorOption.darkGrey} fontSize="12px"> + MetaMask + </Text> + </Container> + </Flex> </Flex> - </Flex> + </Container> + <PaymentMethodDropdown + accountAddress={'231312423s432'} + accountEthBalanceInWei={new BigNumber(10500000000000000000)} + network={Network.Mainnet} + /> </Container> - <PaymentMethodDropdown - accountAddress="0xa1b2c3d4e5f6g7h8j9k10" - accountEthBalanceInWei={new BigNumber(10500000000000000000)} - network={Network.Mainnet} - /> - </Container> -); + ); +}; |