diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-02 05:08:59 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-02 05:08:59 +0800 |
commit | 457ed57d70c1b34b243a151f16fd3d41bfa12bb3 (patch) | |
tree | 0f8d65399f024cc99133cf9e5856839a4e74fbd3 /packages/website/ts | |
parent | 67a2359014d933561425258ae774f7005ef52b15 (diff) | |
download | dexon-sol-tools-457ed57d70c1b34b243a151f16fd3d41bfa12bb3.tar dexon-sol-tools-457ed57d70c1b34b243a151f16fd3d41bfa12bb3.tar.gz dexon-sol-tools-457ed57d70c1b34b243a151f16fd3d41bfa12bb3.tar.bz2 dexon-sol-tools-457ed57d70c1b34b243a151f16fd3d41bfa12bb3.tar.lz dexon-sol-tools-457ed57d70c1b34b243a151f16fd3d41bfa12bb3.tar.xz dexon-sol-tools-457ed57d70c1b34b243a151f16fd3d41bfa12bb3.tar.zst dexon-sol-tools-457ed57d70c1b34b243a151f16fd3d41bfa12bb3.zip |
Move constants before configs and add TODO comment
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/pages/documentation/home.tsx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/packages/website/ts/pages/documentation/home.tsx b/packages/website/ts/pages/documentation/home.tsx index b7fa8462b..e202ff1bc 100644 --- a/packages/website/ts/pages/documentation/home.tsx +++ b/packages/website/ts/pages/documentation/home.tsx @@ -21,14 +21,6 @@ import { Deco, Key, ScreenWidths, TutorialInfo, WebsitePaths } from 'ts/types'; import { Translate } from 'ts/utils/translate'; import { utils } from 'ts/utils/utils'; -interface Package { - name: string; - description: string; - to: string; - isExternal?: boolean; - shouldOpenInNewTab?: boolean; -} - const THROTTLE_TIMEOUT = 100; const TOP_BAR_HEIGHT = 80; const SCROLLER_WIDTH = 4; @@ -63,6 +55,7 @@ enum Categories { Ethereum = 'Ethereum', CommunityMaintained = 'Community Maintained', } +// TODO(fabio): Move this to it's own file const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = { [Categories.ZeroExProtocol]: [ { @@ -275,6 +268,14 @@ const CATEGORY_TO_PACKAGES: { [category: string]: Package[] } = { ], }; +interface Package { + name: string; + description: string; + to: string; + isExternal?: boolean; + shouldOpenInNewTab?: boolean; +} + export interface HomeProps { location: Location; translate: Translate; |