aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/website/ts/pages/documentation/home.tsx17
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;