Removed redundant links, fixed linting issues
This commit is contained in:
@@ -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,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@@ -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';
|
||||||
@@ -54,7 +53,9 @@ export const DropdownResources: React.FunctionComponent<Props> = withTheme((prop
|
|||||||
<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}>
|
||||||
|
{item.label}
|
||||||
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -75,7 +76,6 @@ export const DropdownResources: React.FunctionComponent<Props> = withTheme((prop
|
|||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
</Column>
|
</Column>
|
||||||
|
|
||||||
</StyledWrap>
|
</StyledWrap>
|
||||||
</DropdownWrap>
|
</DropdownWrap>
|
||||||
</>
|
</>
|
||||||
|
@@ -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,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user