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`, url: `${WebsitePaths.Wiki}#Find,-Submit,-Fill-Order-From-Relayer`,
}, },
{ {
label: 'Market making', label: 'Use 0x Instant',
url: `${WebsitePaths.MarketMaker}`, url: `${WebsitePaths.Wiki}#Get-Started-With-Instant`,
}, },
{ {
label: 'Free credits', label: '0x Code Sandbox',
url: `${WebsitePaths.Credits}`, url: constants.URL_SANDBOX,
}, },
]; ];

View File

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

View File

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