aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages/instant/config_generator.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-30 09:21:53 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 18:56:11 +0800
commitec24bf84019ef16c32149040d096e436442828b8 (patch)
treebe0f8b154dc3c6239c62a55b2126ba66d548ef3d /packages/website/ts/pages/instant/config_generator.tsx
parent9ebb0960254f1dcfb9513cbc6203840a87ee60e4 (diff)
downloaddexon-0x-contracts-ec24bf84019ef16c32149040d096e436442828b8.tar.gz
dexon-0x-contracts-ec24bf84019ef16c32149040d096e436442828b8.tar.zst
dexon-0x-contracts-ec24bf84019ef16c32149040d096e436442828b8.zip
feat: add MultiSelect component skeleton
Diffstat (limited to 'packages/website/ts/pages/instant/config_generator.tsx')
-rw-r--r--packages/website/ts/pages/instant/config_generator.tsx24
1 files changed, 23 insertions, 1 deletions
diff --git a/packages/website/ts/pages/instant/config_generator.tsx b/packages/website/ts/pages/instant/config_generator.tsx
index d63975e31..0dac0f9ec 100644
--- a/packages/website/ts/pages/instant/config_generator.tsx
+++ b/packages/website/ts/pages/instant/config_generator.tsx
@@ -3,6 +3,8 @@ import * as React from 'react';
import { Container } from 'ts/components/ui/container';
import { Select, SelectItemConfig } from 'ts/components/ui/select';
+import { Text } from 'ts/components/ui/text';
+import { colors } from 'ts/style/colors';
import { ZeroExInstantBaseConfig } from '../../../../instant/src/types';
@@ -18,7 +20,10 @@ export class ConfigGenerator extends React.Component<ConfigGeneratorProps> {
const { value } = this.props;
return (
<Container>
- <Select value={value.orderSource as string} items={this._generateItems()} />
+ <ConfigGeneratorSection title="Standard Relayer API Endpoint">
+ <Select value={value.orderSource as string} items={this._generateItems()} />
+ </ConfigGeneratorSection>
+ <ConfigGeneratorSection title="What tokens can users buy?">BLAH</ConfigGeneratorSection>
</Container>
);
}
@@ -36,3 +41,20 @@ export class ConfigGenerator extends React.Component<ConfigGeneratorProps> {
this.props.onConfigChange(newConfig);
};
}
+
+export interface ConfigGeneratorSectionProps {
+ title: string;
+ actionText?: string;
+ onActionTextClick?: () => void;
+}
+
+export const ConfigGeneratorSection: React.StatelessComponent<ConfigGeneratorSectionProps> = props => (
+ <Container marginBottom="30px">
+ <Container marginBottom="10px">
+ <Text fontColor={colors.white} fontSize="16px" lineHeight="18px">
+ {props.title}
+ </Text>
+ </Container>
+ {props.children}
+ </Container>
+);