feat(website): scaffolding for instant page
This commit is contained in:
parent
53f8e1b3b4
commit
7a726e2740
27
packages/website/ts/containers/instant.ts
Normal file
27
packages/website/ts/containers/instant.ts
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import * as React from 'react';
|
||||||
|
import { connect } from 'react-redux';
|
||||||
|
import { Dispatch } from 'redux';
|
||||||
|
import { Instant as InstantComponent, InstantProps } from 'ts/pages/instant/instant';
|
||||||
|
import { Dispatcher } from 'ts/redux/dispatcher';
|
||||||
|
import { State } from 'ts/redux/reducer';
|
||||||
|
import { Translate } from 'ts/utils/translate';
|
||||||
|
|
||||||
|
interface ConnectedState {
|
||||||
|
translate: Translate;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface ConnectedDispatch {
|
||||||
|
dispatcher: Dispatcher;
|
||||||
|
}
|
||||||
|
|
||||||
|
const mapStateToProps = (state: State, _ownProps: InstantProps): ConnectedState => ({
|
||||||
|
translate: state.translate,
|
||||||
|
});
|
||||||
|
|
||||||
|
const mapDispatchToProps = (dispatch: Dispatch<State>): ConnectedDispatch => ({
|
||||||
|
dispatcher: new Dispatcher(dispatch),
|
||||||
|
});
|
||||||
|
|
||||||
|
export const Instant: React.ComponentClass<InstantProps> = connect(mapStateToProps, mapDispatchToProps)(
|
||||||
|
InstantComponent,
|
||||||
|
);
|
@ -7,6 +7,7 @@ import { MetaTags } from 'ts/components/meta_tags';
|
|||||||
import { About } from 'ts/containers/about';
|
import { About } from 'ts/containers/about';
|
||||||
import { DocsHome } from 'ts/containers/docs_home';
|
import { DocsHome } from 'ts/containers/docs_home';
|
||||||
import { FAQ } from 'ts/containers/faq';
|
import { FAQ } from 'ts/containers/faq';
|
||||||
|
import { Instant } from 'ts/containers/instant';
|
||||||
import { Jobs } from 'ts/containers/jobs';
|
import { Jobs } from 'ts/containers/jobs';
|
||||||
import { Landing } from 'ts/containers/landing';
|
import { Landing } from 'ts/containers/landing';
|
||||||
import { LaunchKit } from 'ts/containers/launch_kit';
|
import { LaunchKit } from 'ts/containers/launch_kit';
|
||||||
@ -92,6 +93,7 @@ render(
|
|||||||
<Route exact={true} path="/" component={Landing as any} />
|
<Route exact={true} path="/" component={Landing as any} />
|
||||||
<Redirect from="/otc" to={`${WebsitePaths.Portal}`} />
|
<Redirect from="/otc" to={`${WebsitePaths.Portal}`} />
|
||||||
<Route path={WebsitePaths.LaunchKit} component={LaunchKit as any} />
|
<Route path={WebsitePaths.LaunchKit} component={LaunchKit as any} />
|
||||||
|
<Route path={WebsitePaths.Instant} component={Instant as any} />
|
||||||
<Route path={WebsitePaths.Careers} component={Jobs as any} />
|
<Route path={WebsitePaths.Careers} component={Jobs as any} />
|
||||||
<Route path={WebsitePaths.Portal} component={LazyPortal} />
|
<Route path={WebsitePaths.Portal} component={LazyPortal} />
|
||||||
<Route path={WebsitePaths.FAQ} component={FAQ as any} />
|
<Route path={WebsitePaths.FAQ} component={FAQ as any} />
|
||||||
|
12
packages/website/ts/pages/instant/instant.tsx
Normal file
12
packages/website/ts/pages/instant/instant.tsx
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import * as React from 'react';
|
||||||
|
|
||||||
|
import { Dispatcher } from 'ts/redux/dispatcher';
|
||||||
|
import { Translate } from 'ts/utils/translate';
|
||||||
|
|
||||||
|
export interface InstantProps {
|
||||||
|
location: Location;
|
||||||
|
translate: Translate;
|
||||||
|
dispatcher: Dispatcher;
|
||||||
|
}
|
||||||
|
|
||||||
|
export const Instant: React.StatelessComponent<InstantProps> = () => <div />;
|
@ -353,6 +353,7 @@ export enum WebsitePaths {
|
|||||||
FAQ = '/faq',
|
FAQ = '/faq',
|
||||||
About = '/about',
|
About = '/about',
|
||||||
LaunchKit = '/launch-kit',
|
LaunchKit = '/launch-kit',
|
||||||
|
Instant = '/instant',
|
||||||
Whitepaper = '/pdfs/0x_white_paper.pdf',
|
Whitepaper = '/pdfs/0x_white_paper.pdf',
|
||||||
SmartContracts = '/docs/contracts',
|
SmartContracts = '/docs/contracts',
|
||||||
Connect = '/docs/connect',
|
Connect = '/docs/connect',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user