Fix NotFound component and render 0x.js docs for /docs

This commit is contained in:
Brandon Millman
2018-06-28 12:23:56 -07:00
parent 2474d1d2f4
commit 71fa92dbeb
3 changed files with 5 additions and 3 deletions

View File

@@ -97,6 +97,7 @@ render(
<Route path={WebsitePaths.FAQ} component={FAQ as any} />
<Route path={WebsitePaths.About} component={About as any} />
<Route path={WebsitePaths.Wiki} component={Wiki as any} />
<Route path={`${WebsitePaths.Docs}`} component={LazyZeroExJSDocumentation} />
<Route path={`${WebsitePaths.ZeroExJs}/:version?`} component={LazyZeroExJSDocumentation} />
<Route path={`${WebsitePaths.Connect}/:version?`} component={LazyConnectDocumentation} />
<Route

View File

@@ -11,15 +11,15 @@ export interface NotFoundProps {
dispatcher: Dispatcher;
}
export const NotFound = (_props: NotFoundProps) => {
export const NotFound = (props: NotFoundProps) => {
return (
<div>
<TopBar blockchainIsLoaded={false} location={this.props.location} translate={this.props.translate} />
<TopBar blockchainIsLoaded={false} location={props.location} translate={props.translate} />
<FullscreenMessage
headerText={'404 Not Found'}
bodyText={"Hm... looks like we couldn't find what you are looking for."}
/>
<Footer translate={this.props.translate} dispatcher={this.props.dispatcher} />
<Footer translate={props.translate} dispatcher={props.dispatcher} />
</div>
);
};

View File

@@ -356,6 +356,7 @@ export enum WebsiteLegacyPaths {
export enum WebsitePaths {
Portal = '/portal',
Wiki = '/wiki',
Docs = '/docs',
ZeroExJs = '/docs/0x.js',
Home = '/',
FAQ = '/faq',