diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-20 04:45:12 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-20 04:45:12 +0800 |
commit | d5105b5c9f74a4f52e4952b845a37692bb824fd4 (patch) | |
tree | 2d7d5cd24088ce9652d5b79a9d5bc133436cfcb5 /packages/instant/src/components/ui/container.tsx | |
parent | 43ad2fe23bec01b077f5c55a23736fdcb24781a3 (diff) | |
download | dexon-0x-contracts-d5105b5c9f74a4f52e4952b845a37692bb824fd4.tar dexon-0x-contracts-d5105b5c9f74a4f52e4952b845a37692bb824fd4.tar.gz dexon-0x-contracts-d5105b5c9f74a4f52e4952b845a37692bb824fd4.tar.bz2 dexon-0x-contracts-d5105b5c9f74a4f52e4952b845a37692bb824fd4.tar.lz dexon-0x-contracts-d5105b5c9f74a4f52e4952b845a37692bb824fd4.tar.xz dexon-0x-contracts-d5105b5c9f74a4f52e4952b845a37692bb824fd4.tar.zst dexon-0x-contracts-d5105b5c9f74a4f52e4952b845a37692bb824fd4.zip |
feat: user better syntax for defining ui components
Diffstat (limited to 'packages/instant/src/components/ui/container.tsx')
-rw-r--r-- | packages/instant/src/components/ui/container.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/instant/src/components/ui/container.tsx b/packages/instant/src/components/ui/container.tsx index 02b16e39f..b7e17d807 100644 --- a/packages/instant/src/components/ui/container.tsx +++ b/packages/instant/src/components/ui/container.tsx @@ -29,11 +29,7 @@ export interface ContainerProps { zIndex?: number; } -const PlainContainer: React.StatelessComponent<ContainerProps> = ({ children, className }) => ( - <div className={className}>{children}</div> -); - -export const Container = styled(PlainContainer)` +export const Container = styled<ContainerProps, 'div'>('div')` box-sizing: border-box; ${props => cssRuleIfExists(props, 'display')} ${props => cssRuleIfExists(props, 'position')} |