diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-06-29 03:35:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-29 03:35:18 +0800 |
commit | 518a2da0275632a5dd61f99a105163ff5a074927 (patch) | |
tree | c0b96570117586834d8f11857c54955839284c52 /packages | |
parent | 2474d1d2f4cf4ae81d5d67c53005f018a0154ef5 (diff) | |
parent | 71fa92dbeb23b94142ec3c3d33f9e3ee311f43da (diff) | |
download | dexon-sol-tools-518a2da0275632a5dd61f99a105163ff5a074927.tar dexon-sol-tools-518a2da0275632a5dd61f99a105163ff5a074927.tar.gz dexon-sol-tools-518a2da0275632a5dd61f99a105163ff5a074927.tar.bz2 dexon-sol-tools-518a2da0275632a5dd61f99a105163ff5a074927.tar.lz dexon-sol-tools-518a2da0275632a5dd61f99a105163ff5a074927.tar.xz dexon-sol-tools-518a2da0275632a5dd61f99a105163ff5a074927.tar.zst dexon-sol-tools-518a2da0275632a5dd61f99a105163ff5a074927.zip |
Merge pull request #791 from 0xProject/bug/website/broken-not-found
Fix NotFound component and render 0x.js docs for /docs
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/index.tsx | 1 | ||||
-rw-r--r-- | packages/website/ts/pages/not_found.tsx | 6 | ||||
-rw-r--r-- | packages/website/ts/types.ts | 1 |
3 files changed, 5 insertions, 3 deletions
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx index 249b4fdc9..23387a95a 100644 --- a/packages/website/ts/index.tsx +++ b/packages/website/ts/index.tsx @@ -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 diff --git a/packages/website/ts/pages/not_found.tsx b/packages/website/ts/pages/not_found.tsx index 2fe3b1f45..a7992a8fa 100644 --- a/packages/website/ts/pages/not_found.tsx +++ b/packages/website/ts/pages/not_found.tsx @@ -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> ); }; diff --git a/packages/website/ts/types.ts b/packages/website/ts/types.ts index 2db947ba3..3211ddbd0 100644 --- a/packages/website/ts/types.ts +++ b/packages/website/ts/types.ts @@ -356,6 +356,7 @@ export enum WebsiteLegacyPaths { export enum WebsitePaths { Portal = '/portal', Wiki = '/wiki', + Docs = '/docs', ZeroExJs = '/docs/0x.js', Home = '/', FAQ = '/faq', |