Move constants before configs and add TODO comment

This commit is contained in:
Fabio Berger
2018-10-01 22:08:59 +01:00
parent 67a2359014
commit 457ed57d70

View File

@@ -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;