diff --git a/app/components/wallet-summary.js b/app/components/wallet-summary.js new file mode 100644 index 0000000..3b82664 --- /dev/null +++ b/app/components/wallet-summary.js @@ -0,0 +1,69 @@ +// @flow +import React from 'react'; +import styled from 'styled-components'; + +import { TextComponent } from './text'; +import { RowComponent } from './row'; + +const Wrapper = styled.div` + background-color: ${props => props.theme.colors.cardBackgroundColor}; + border-radius: 10px; + width: 100%; + padding: 30px; + margin: 10px; +`; + +const AllAddresses = styled(TextComponent)` + margin-bottom: 2.5px; +`; + +const ValueBox = styled.div` + margin-bottom: 15px; + margin-right: 25px; +`; + +const Label = styled(TextComponent)` + margin: 10px 0; + margin-left: -15px; +`; + +const USDValue = styled(TextComponent)` + opacity: 0.7; +`; + +const ShieldedValue = styled(Label)` + color: ${props => props.theme.colors.activeItem}; +`; + +type Props = { + total: number, + shielded: number, + transparent: number, + dollarValue: number, +}; + +const formatNumber = number => number.toLocaleString('de-DE'); + +export const WalletSummaryComponent = ({ + total, shielded, transparent, dollarValue, +}: Props) => ( + + + + + + + + + + + + + + + + +);