Removed redundant links, fixed linting issues
This commit is contained in:
parent
f1fbaedb0f
commit
15e3944d23
@ -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,
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -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';
|
||||
@ -54,7 +53,9 @@ export const DropdownResources: React.FunctionComponent<Props> = withTheme((prop
|
||||
<ul>
|
||||
{_.map(introData, (item, index) => (
|
||||
<li key={`introLink-${index}`}>
|
||||
<Link to={item.url} shouldOpenInNewTab={item.shouldOpenInNewTab}>{item.label}</Link>
|
||||
<Link to={item.url} shouldOpenInNewTab={item.shouldOpenInNewTab}>
|
||||
{item.label}
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
@ -75,7 +76,6 @@ export const DropdownResources: React.FunctionComponent<Props> = withTheme((prop
|
||||
))}
|
||||
</ul>
|
||||
</Column>
|
||||
|
||||
</StyledWrap>
|
||||
</DropdownWrap>
|
||||
</>
|
||||
|
@ -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,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user