Removed redundant links, fixed linting issues

This commit is contained in:
Chris Kalani 2019-05-24 17:23:05 -07:00
parent f1fbaedb0f
commit 15e3944d23
3 changed files with 14 additions and 16 deletions

View File

@ -38,12 +38,12 @@ const introData: LinkConfig[] = [
url: `${WebsitePaths.Wiki}#Find,-Submit,-Fill-Order-From-Relayer`,
},
{
label: 'Market making',
url: `${WebsitePaths.MarketMaker}`,
label: 'Use 0x Instant',
url: `${WebsitePaths.Wiki}#Get-Started-With-Instant`,
},
{
label: 'Free credits',
url: `${WebsitePaths.Credits}`,
label: '0x Code Sandbox',
url: constants.URL_SANDBOX,
},
];

View File

@ -3,8 +3,7 @@ import * as _ from 'lodash';
import * as React from 'react';
import styled, { withTheme } from 'styled-components';
import { Button } from 'ts/components/button';
import { Column, FlexWrap, WrapGrid } from 'ts/components/newLayout';
import { Column, FlexWrap } from 'ts/components/newLayout';
import { ThemeValuesInterface } from 'ts/components/siteWrap';
import { Heading } from 'ts/components/text';
import { WebsitePaths } from 'ts/types';
@ -52,11 +51,13 @@ export const DropdownResources: React.FunctionComponent<Props> = withTheme((prop
<>
<DropdownWrap>
<ul>
{_.map(introData, (item, index) => (
<li key={`introLink-${index}`}>
<Link to={item.url} shouldOpenInNewTab={item.shouldOpenInNewTab}>{item.label}</Link>
</li>
))}
{_.map(introData, (item, index) => (
<li key={`introLink-${index}`}>
<Link to={item.url} shouldOpenInNewTab={item.shouldOpenInNewTab}>
{item.label}
</Link>
</li>
))}
</ul>
<StyledWrap>
@ -75,7 +76,6 @@ export const DropdownResources: React.FunctionComponent<Props> = withTheme((prop
))}
</ul>
</Column>
</StyledWrap>
</DropdownWrap>
</>

View File

@ -16,7 +16,6 @@ import { MobileNav } from 'ts/components/mobileNav';
import { FlexWrap } from 'ts/components/newLayout';
import { ThemeValuesInterface } from 'ts/components/siteWrap';
import { WebsitePaths } from 'ts/types';
import { constants } from 'ts/utils/constants';
interface HeaderProps {
location?: Location;
@ -31,7 +30,6 @@ interface NavItemProps {
text?: string;
dropdownWidth?: number;
dropdownComponent?: React.FunctionComponent<any>;
shouldOpenInNewTab?: boolean;
}
interface DropdownWrapInterface {
@ -51,8 +49,8 @@ const navItems: NavItemProps[] = [
dropdownWidth: 280,
},
{
id: 'docs',
text: 'Docs',
id: 'developers',
text: 'Developers',
dropdownComponent: DropdownDevelopers,
dropdownWidth: 480,
},