aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/wallet/null_token_row.tsx
blob: c8b4e67d04772cf57d5b0e5a8e1ab679f448dd76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import * as React from 'react';

import { Circle } from 'ts/components/ui/circle';
import { Container } from 'ts/components/ui/container';
import { Text } from 'ts/components/ui/text';
import { PlaceHolder } from 'ts/components/wallet/placeholder';
import { StandardIconRow } from 'ts/components/wallet/standard_icon_row';
import { colors } from 'ts/style/colors';

export interface NullTokenRowProps {
    iconDimension: number;
    fillColor: string;
}

export const NullTokenRow: React.StatelessComponent<NullTokenRowProps> = ({ iconDimension, fillColor }) => {
    const icon = <Circle diameter={iconDimension} fillColor={fillColor} />;
    const main = (
        <div className="flex flex-column">
            <PlaceHolder hideChildren={true} fillColor={fillColor}>
                <Text fontSize="16px" fontWeight="bold" lineHeight="1em">
                    0.00 XXX
                </Text>
            </PlaceHolder>
            <Container marginTop="3px">
                <PlaceHolder hideChildren={true} fillColor={fillColor}>
                    <Text fontSize="14px" fontColor={colors.darkGrey} lineHeight="1em">
                        0.00
                    </Text>
                </PlaceHolder>
            </Container>
        </div>
    );
    const accessory = (
        <Container marginRight="12px">
            <PlaceHolder hideChildren={true} fillColor={fillColor}>
                <Container width="20px" height="14px" />
            </PlaceHolder>
        </Container>
    );
    return <StandardIconRow icon={icon} main={main} accessory={accessory} />;
};