diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-05-17 07:47:04 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-05-18 02:02:55 +0800 |
commit | 00515eb6f96c44387575fbae6f527c3661e84f43 (patch) | |
tree | 5c4e03b011e40a51c19ba291e8898a8ced41cfd1 /packages/website/ts/components/portal/section.tsx | |
parent | 63e7391981fca437efba221ff4babdb9d6fdac5b (diff) | |
download | dexon-0x-contracts-00515eb6f96c44387575fbae6f527c3661e84f43.tar.gz dexon-0x-contracts-00515eb6f96c44387575fbae6f527c3661e84f43.tar.zst dexon-0x-contracts-00515eb6f96c44387575fbae6f527c3661e84f43.zip |
Refactor a bunch of layouts into their own files
Diffstat (limited to 'packages/website/ts/components/portal/section.tsx')
-rw-r--r-- | packages/website/ts/components/portal/section.tsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/website/ts/components/portal/section.tsx b/packages/website/ts/components/portal/section.tsx new file mode 100644 index 000000000..9b172aae0 --- /dev/null +++ b/packages/website/ts/components/portal/section.tsx @@ -0,0 +1,15 @@ +import { Styles } from '@0xproject/react-shared'; +import * as React from 'react'; + +export interface SectionProps { + header: React.ReactNode; + body: React.ReactNode; +} +export const Section = (props: SectionProps) => { + return ( + <div className="flex flex-column" style={{ height: '100%' }}> + {props.header} + <div className="flex-auto">{props.body}</div> + </div> + ); +}; |