diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-30 09:37:23 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-30 09:38:23 +0800 |
commit | d0a0af51306bf5e5b46fd8982c70b271212af42f (patch) | |
tree | 5e1c9bd7e3068605eca7a859a704c97d280a435b /packages/instant/src/components/ui | |
parent | 4cba70f32e4300cea7396f08687f2e53a7728e68 (diff) | |
download | dexon-0x-contracts-d0a0af51306bf5e5b46fd8982c70b271212af42f.tar dexon-0x-contracts-d0a0af51306bf5e5b46fd8982c70b271212af42f.tar.gz dexon-0x-contracts-d0a0af51306bf5e5b46fd8982c70b271212af42f.tar.bz2 dexon-0x-contracts-d0a0af51306bf5e5b46fd8982c70b271212af42f.tar.lz dexon-0x-contracts-d0a0af51306bf5e5b46fd8982c70b271212af42f.tar.xz dexon-0x-contracts-d0a0af51306bf5e5b46fd8982c70b271212af42f.tar.zst dexon-0x-contracts-d0a0af51306bf5e5b46fd8982c70b271212af42f.zip |
feat: add 'Select Token' UI to asset amount input
Diffstat (limited to 'packages/instant/src/components/ui')
-rw-r--r-- | packages/instant/src/components/ui/container.tsx | 2 | ||||
-rw-r--r-- | packages/instant/src/components/ui/flex.tsx | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/packages/instant/src/components/ui/container.tsx b/packages/instant/src/components/ui/container.tsx index 76b570de7..b6842b294 100644 --- a/packages/instant/src/components/ui/container.tsx +++ b/packages/instant/src/components/ui/container.tsx @@ -28,6 +28,7 @@ export interface ContainerProps { zIndex?: number; whiteSpace?: string; opacity?: number; + cursor?: string; } export const Container = @@ -57,6 +58,7 @@ export const Container = ${props => cssRuleIfExists(props, 'z-index')} ${props => cssRuleIfExists(props, 'white-space')} ${props => cssRuleIfExists(props, 'opacity')} + ${props => cssRuleIfExists(props, 'cursor')} ${props => (props.hasBoxShadow ? `box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1)` : '')}; background-color: ${props => (props.backgroundColor ? props.theme[props.backgroundColor] : 'none')}; border-color: ${props => (props.borderColor ? props.theme[props.borderColor] : 'none')}; diff --git a/packages/instant/src/components/ui/flex.tsx b/packages/instant/src/components/ui/flex.tsx index 5fa3fc95b..29c6511bb 100644 --- a/packages/instant/src/components/ui/flex.tsx +++ b/packages/instant/src/components/ui/flex.tsx @@ -9,14 +9,14 @@ export interface FlexProps { width?: string; height?: string; backgroundColor?: ColorOption; - className?: string; + inline?: boolean; } export const Flex = styled.div < FlexProps > ` - display: flex; + display: ${props => (props.inline ? 'inline-flex' : 'flex')}; flex-direction: ${props => props.direction}; flex-wrap: ${props => props.flexWrap}; justify-content: ${props => props.justify}; |